Skip to content

luci-theme-bootstrap: fix hidden down arrow on submenus for accessibility - #8880

Open
bpisch wants to merge 1 commit into
openwrt:masterfrom
bpisch:a11y-submenus
Open

luci-theme-bootstrap: fix hidden down arrow on submenus for accessibility#8880
bpisch wants to merge 1 commit into
openwrt:masterfrom
bpisch:a11y-submenus

Conversation

@bpisch

@bpisch bpisch commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

This PR is an improvement for LuCI screen reader accessibility for blind and visually impaired people. It should not affect the visual look of the page.
The down arrow displayed next to submenus is a CSS-drawn triangle, but in its content: field it had a hidden down arrow encoded as ↓ Since these HTML-encoded symbols aren't converted into real characters in CSS fields, screen readers read this out loud even if it is visually hidden. Therefore next to all submenus, screen readers announced: and darr semicolon. This change fixes the symbol encoding so that screen readers correctly announce "down arrow" when navigating onto a submenu. The visually drawn triangle is completely ignored by the screen reader, that is why some indication is needed. Later this could be improved with proper ARIA attributes, but this was the quickest fix for now to improve LuCI usability until I manage to test it further.
Change is tested on OpenWrt 25.12.5 but as this is a CSS modification it should be universal anywhere LuCI is used.

@openwrt openwrt Bot added the not following guidelines Pull request does not follow formatting guidelines label Jul 27, 2026
…lity

The down arrow displayed next to submenus is a CSS-drawn triangle,
but in its content: field it had a hidden down arrow encoded as ↓
Since these HTML-encoded symbols aren't converted into real characters in CSS fields,
screen readers read this out loud even if it is visually hidden.
Therefore next to all submenus, screen readers announced: and darr semicolon.
This change fixes the symbol encoding so that screen readers correctly announce "down arrow".

Signed-off-by: Bendeguz Pisch <pisch.beni@gmail.com>
@openwrt openwrt Bot removed the not following guidelines Pull request does not follow formatting guidelines label Jul 27, 2026

@openwrt-ai openwrt-ai left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 1 new commit; no new issues found.


Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants