42be854521
* upgrade to svelte 2.0 * update svelte-loader to 2.9.0
22 lines
448 B
HTML
22 lines
448 B
HTML
<a class="settings-nav-item {className}"
|
|
aria-label={ariaLabel}
|
|
{href} >
|
|
{label}
|
|
</a>
|
|
<style>
|
|
a.settings-nav-item {
|
|
font-size: 1.2em;
|
|
}
|
|
|
|
a.settings-nav-item.selected {
|
|
font-weight: 600;
|
|
}
|
|
</style>
|
|
<script>
|
|
export default {
|
|
computed: {
|
|
className: ({ page, name }) => page === name ? 'selected' : '',
|
|
ariaLabel: ({ page, name, label }) => page === name ? `${label} (current page)` : label
|
|
}
|
|
}
|
|
</script> |