github / github/erblint-github
Update svg accessible name guidance
- Vorherrschende Sprache
- Ruby
- Sterne
- 66
- Forks
- 9
- Ø Merge
- 9 Std. 26 Min.
- Gemergte PRs (30 T.)
- 2
Beschreibung
```
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)
Beitragsleitfaden
Rechercherichtung
Überprüfe die aktuelle Anleitung des Repositorys zu barrierefreien SVG-Namen und vergleiche sie mit der verlinkten GitHub-Referenz zur Barrierefreiheit. Entscheide, wie das Muster mit title, ID und aria-labelledby empfohlen werden soll und wie alternative Ansätze behandelt werden sollen; abgeschlossen ist die Aufgabe, wenn die Anleitung diese Entscheidung widerspiegelt.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- ruby
- Bereich
- accessibility, documentation
- Issue-Typ
- Dokumentation
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 45/100