fix: FluentDataGrid empty and loading states are not announced to screen readers
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 45/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- csharp, html
調査の方向性
Start with the FluentDataGrid rendering for DataGridRowState.EmptyContent and DataGridRowState.LoadingContent, then inspect the existing persistent sort status region and the DataGrid_EmptyContent resource. Check how the grid updates announcements when filtering leaves no rows. Done means the agreed behavior is announced to screen readers without changing table semantics; the issue leaves open whether to announce loading or item counts, so clarify that approach first.
索引モデルが issue の本文から書いたものです。
説明
🐛 Bug Report
Like #5473 for the paginator, the FluentDataGrid empty and loading states are not announced to screen readers.
When a filter (or a data refresh) leaves the grid empty, the "No data to show" row is displayed, but nothing is announced: the row is a newly inserted tr (DataGridRowState.EmptyContent), and screen readers only announce changes inside a live region that already exists. The same applies to the loading row (DataGridRowState.LoadingContent).
💻 Repro or Code Sample
- Open https://fluentui-blazor.net/DataGrid/GettingStarted with a screen reader.
- Type a filter that matches no item.
- "No data to show" is displayed but not announced.
🤔 Expected Behavior
The empty state (and possibly the loading state) is announced, so screen reader users know the result of their action.
💁 Possible Solution
The rows themselves can't be live regions (role="status" on a tr breaks the table semantics). The grid already renders a persistent live region for multiple sorting:
<div sort-status role="status" aria-live="polite">@_sortAnnouncement</div>
A possible approach: always render this region (it's empty by default), and also set its text when the grid becomes empty, using the existing DataGrid_EmptyContent resource (or the EmptyContent text).
Questions before I send a PR:
- Should the loading state also be announced? It may be noisy when the data is refreshed often.
- Would you rather announce the item count after a refresh (e.g. "12 items"), which covers the empty case too?
I'm happy to submit the PR once the approach is agreed.
- 主要言語
- C#
- スター
- 4.9k
- フォーク
- 497
- 平均マージ
- 1日 1時間
- マージ済み PR(30日)
- 47
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
microsoft/fluentui-blazor のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
microsoft/fluentui-blazor#5688 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 69/100
microsoft/fluentui-blazor#5687 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
microsoft/fluentui-blazor#5684 ·
メンテナーはふだん 1 日以内に返信
-
fix: checked task-list declarations using * or + fail the contribution check対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
microsoft/fluentui-blazor#5683 ·
メンテナーはふだん 1 日以内に返信
-
[FluentNumberInput ]: Screen reader does not announce the Spin Button role for the NumericType spin edit box対応中かも @vnbaaij が 4 日前に担当しました。 オープンa11y A11yMAS A11ySev2 FluentUIBlazor_Web MAS4.1.2
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
microsoft/fluentui-blazor#5533 ·
メンテナーはふだん 1 日以内に返信
microsoft/fluentui-blazor の issue をすべて見る
似ている issue
-
In-car displays show 0 km/h and P while the AV drives対応中かも @bazilinskyy が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
bazilinskyy/coupled-sim#366 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 3 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
BaryoDev/umbraco-pwa#196 ·
メンテナーはふだん 1 日以内に返信
-
bug flaky lsp-transport small
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
OpenTelemetryChatClient records gen_ai.response.finish_reasons as a JSON string instead of string[]オープンarea-ai bug untriaged
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
dotnet/extensions#7995 ·
メンテナーはふだん 1 日以内に返信