diff --git a/src/components/Nav.svelte b/src/components/Nav.svelte index 1892864..99d46b1 100644 --- a/src/components/Nav.svelte +++ b/src/components/Nav.svelte @@ -26,12 +26,12 @@ float: left; } - .selected { + [aria-current] { position: relative; display: inline-block; } - .selected::after { + [aria-current]::after { position: absolute; content: ''; width: calc(100% - 1em); @@ -50,11 +50,11 @@