Skip to content

Icons #897

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 #897

cyberbaloo opened this issue Apr 22, 2025 · 0 comments

Comments

@cyberbaloo
Copy link

Problematic behavior
Some icons are decorative and must be hidden from assistive technologies

Expected behavior/code
Examples :
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="36" fill="none" aria-label="Icône simple du document">

<button class="c__button c__button--tertiary-text c__button--medium c__button--icon-only c__button--text"><span class="c__button__icon"><span class="sc-44fdd96b-0 sc-f3e12f95-0 fKBHOL leiLsc material-icons">house</span></span></button>

Possible Solution
Add a attribute aria-hidden="true" to all decorative icons.

Add an attribute aria-label="Retour à l'accueil" to the home icon
Add an attribute aria-label="Nouveau document" to the magnifying glass icon
Add an attribute aria-label="Nouveau document" to the "Nouveau doc" button

Additional context/Screenshots

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