davsclaus opened a new issue, #1880: URL: https://github.com/apache/camel-website/issues/1880
## Description Accessibility issues found in the Antora UI theme and Hugo templates. ### Focus outlines removed with no replacement `outline: none` with no `:focus-visible` rule, so keyboard users can't see where focus is: - `.navbar-burger`: `antora-ui-camel/src/css/header.css:80,97-98` - `.nav-toggle`: `toolbar.css:41` - `.nav-item-toggle`: `nav.css:176` - copy-to-clipboard button: `doc.css:769` - page versions select: `page-versions.css:23` - `.toc-menu a`: `toc.css:74` ### No skip link Neither `layouts/partials/header.html` nor the Antora `header-content.hbs`/`body.hbs` has a "Skip to content" link, so keyboard and screen-reader users tab through the whole navigation on every page. ### Heading order on docs pages The navigation emits `<h3 class="title">` (`antora-ui-camel/src/partials/nav-menu.hbs:5`) before the page `<h1>`. On the live Kafka component page the heading order starts h3, h1. ### Accessibility checks disabled `.htmlvalidate.json` disables `wcag/h30` (link text) and `wcag/h63` (table header scope). ## Proposal 1. Add visible `:focus-visible` styles (e.g. a 2px outline in the brand colour, with sufficient contrast in light and dark mode) for all the elements above. 2. Add a visually hidden skip link as the first focusable element, pointing to `<main id="content">` (both Hugo and Antora). 3. Make the nav title a non-heading element (or use `aria-label` on the `<nav>`), so the first heading on a docs page is the `<h1>`. 4. Re-enable `wcag/h30` and `wcag/h63` in html-validate, as warnings first, then fix the findings and make them errors. ## Additional Context Already fine: the viewport meta is set, and the burger menu has an `aria-label` and toggles `aria-expanded`. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
