github / github/erblint-github
Update svg accessible name guidance
- Langage dominant
- Ruby
- Étoiles
- 66
- Forks
- 9
- Merge moyen
- 9 h 26 min
- PR mergées (30 j)
- 2
Description
```
1. Add a `` inside the SVG, with the alt text/name.
2. Give the `<title>` an ID.
3. Apply `aria-labelledby` to the SVG, pointing to the ID of the `<title>` inside of it.
```
This approach has maximum compatibility and should be recommended above all other approaches. Not sure if we would necessarily want to flag the other approaches as errors though... 🤔
[GitHub Staff-only link svg-alt-text](https://github.com/github/accessibility/pull/2273/files)
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Review the repository's current SVG accessible-name guidance and compare it with the linked GitHub accessibility reference. Decide how the title, ID, and aria-labelledby pattern should be recommended and how alternative approaches should be treated; done means the guidance reflects that decision.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- ruby
- Domaine
- accessibility, documentation
- Type d'issue
- Documentation
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 45/100