Using aria-current="page"
to underline a menu on a static page
#686
Unanswered
marcosscriven
asked this question in
Help
Replies: 1 comment
-
For now, I've added this to a small override CSS:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using classless pico CSS and wanted the currently selected menu item to have an underline, rather than only when hovering.
I've got Hugo to output
aria-current="page"
in the generated HTML for the given page, but looking in the browser console it's overridden by https://github.com/picocss/pico/blob/main/css/pico.fluid.classless.jade.css#L2104My generated HTML snippet from Hugo is:
Am I doing something wrong here?
Beta Was this translation helpful? Give feedback.
All reactions