Hacktoberfest 2026: die Issues, die Maintainer für den Oktober markiert haben – offen und einsteigerfreundlich. Hacktoberfest-Issues durchsuchen

Native: map aria-description to accessibilityHint

Offen
#524 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
69/100
Issue-Typ
Feature
Klarheit
Klar beschrieben
Aktivitätsstatus
Aktiv
Tech-Stack
javascript, react, react-native

Rechercherichtung

Start by reading react-strict-dom's native prop handling and the mapping for aria-label to accessibilityLabel, then check the native prop allowlist. Add coverage for aria-description on an html.button and confirm it reaches React Native as accessibilityHint; done means the hint is preserved on native while the web behavior remains appropriate.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

Describe the feature request

On native, there is no way to give an html.* element an accessibility hint (iOS accessibilityHint, read by VoiceOver after the element's name; Android TalkBack reads it too).

The web counterpart is aria-description (or aria-describedby). Today react-strict-dom 0.0.55's native prop handling keeps neither: aria-description is not mapped, and accessibilityHint passed directly is dropped by the native prop allowlist, so a component built on html.button cannot carry a hint.

Proposal: map aria-description (a string) to accessibilityHint on native, the way aria-label maps to accessibilityLabel.

Use case: a design system's Tooltip on touch devices. With no hover, the tooltip text is never drawn; the accessible equivalent is the trigger's hint. Without the mapping, each trigger has to swap its html.button host for a React Native Pressable just to set accessibilityHint, which loses react-strict-dom's styling and press handling on that host.

Version

react-strict-dom 0.0.55, React Native 0.81.5 (Expo SDK 54).

Vorherrschende Sprache
JavaScript
Sterne
3.6k
Forks
208
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus react/react-strict-dom

Alle Issues in react/react-strict-dom

Ähnliche Issues

Weitere Issues zu JavaScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.