Skip to content

Icons secondary navigation (top / right of the screen) #898

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
cyberbaloo opened this issue Apr 22, 2025 · 0 comments
Open

Icons secondary navigation (top / right of the screen) #898

cyberbaloo opened this issue Apr 22, 2025 · 0 comments

Comments

@cyberbaloo
Copy link

cyberbaloo commented Apr 22, 2025

Problematic behavior
Some icons are decorative and must be hidden from assistive technologies and some do not have a defined focus.

Expected behavior/code
Examples :
<button type="button" class="sc-1b99f126-1 kjduna --docs--drop-button" data-rac="" id="react-aria4712909330-:r4e:"><div aria-controls="menu" class="sc-95e747a0-0 cvmtrD"><div class="sc-95e747a0-0 bfzAED"><span class="sc-95e747a0-0 sc-aebf9ca2-0 dTRQex cTXYEw --docs--language-picker-text" aria-label="Langue"><span class="sc-95e747a0-0 sc-aebf9ca2-0 ivgwQe ghSZlg --docs--icon-bg material-icons">translate</span>Français</span></div><span class="sc-95e747a0-0 sc-aebf9ca2-0 wuQWg ibUMXe --docs--icon-bg material-icons">arrow_drop_down</span></div></button>

Possible Solution
Hide icons with an aria-hidden="true"

Add a lang="en" attribute to the term "English" and a lang="de" attribute to Deutsch
This attribute allows screen readers to correctly pronounce the terms.
The language dropdown menu should only be keyboard accessible once, not twice.

The focus disappears when on the next button.

The dropdown menu behavior is not rendered as a dropdown menu as seen on screen.
Remove the aria-labelledby

Image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

2 participants