Anchor 1.0.4
Improved accessibility for header search
This update enhances accessibility by improving the header search icon and addresses mobile menu display issues, ensuring a better user experience across devices.
New
- Accessibility: the header search icon link now has an accessible name (aria-label “Search” + role “button”; decorative SVG hidden). Fixes the Lighthouse “Links must have discernible text” audit. Applied at runtime too, so headers already saved in the Site Editor are covered.
- Accessibility: the header search icon’s accessible name is now also added server-side when the header was customized in the Site Editor, so PageSpeed’s “Links must have discernible text” audit passes on the initial HTML
Improved
- Mobile menu: restored the theme’s overlay colors (WordPress 7.1 started painting the open mobile menu white with white links); submenus now collapse into an accordion (tap the arrow to expand; the current page’s branch opens automatically) and use the same font size as the top-level items