Example app: icon-only IconButtons on the Icon Button screen have no accessible name

オープン 初心者向け
#5,182 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
1/5
見積もり時間
1〜3時間
初心者へのやさしさ
86/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
react-native, typescript

調査の方向性

example/src/Examples/IconButtonExample.tsxを開き、アイコンのみの各IconButtonを確認します。その動作を説明するaria-labelを追加し、次にWebでサンプルアプリを起動して、axe-coreで/icon-buttonを確認します。その画面でaxeがbutton-name違反を報告しなければ完了です。

索引モデルが issue の本文から書いたものです。

説明

Accessibility example app good first task
Current behaviour

On the example app's Icon Button screen (example/src/Examples/IconButtonExample.tsx), no IconButton passes an aria-label, so the icon-only ones render as buttons with no text, and a screen reader announces them only as "button". On the web axe-core reports button-name (critical): "Buttons must have discernible text".

Expected behaviour

Every icon-only IconButton in the example has an aria-label that says what it does, and axe reports no button-name violation on the screen.

How to reproduce?
  1. Run the example app on the web from main (yarn install, then npx expo start --web in example/).
  2. Open the Icon Button example (/icon-button).
  3. Run axe-core on the page.
Preview
What have you tried so far?
Your Environment
software version
react-native-paper main (8cb344b)
browser Chromium 153
主要言語
TypeScript
スター
14.5k
フォーク
2.3k
平均マージ
2日 12時間
マージ済み PR(30日)
22

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

callstack/react-native-paper のほかの issue

callstack/react-native-paper の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。