fix: FluentDataGrid empty and loading states are not announced to screen readers
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 45/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- csharp, html
- Área
- accessibility, frontend
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
🐛 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.
- Lenguaje dominante
- C#
- Estrellas
- 4.9k
- Forks
- 497
- Merge medio
- 1 d 1 h
- PR fusionados (30 d)
- 47
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de microsoft/fluentui-blazor
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
microsoft/fluentui-blazor#5688 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 69/100
microsoft/fluentui-blazor#5687 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
microsoft/fluentui-blazor#5684 ·
Los mantenedores suelen responder en 1 día
-
fix: checked task-list declarations using * or + fail the contribution checkPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
microsoft/fluentui-blazor#5683 ·
Los mantenedores suelen responder en 1 día
-
[FluentNumberInput ]: Screen reader does not announce the Spin Button role for the NumericType spin edit boxPosiblemente ocupada @vnbaaij la tomó hace 4 días. Abiertoa11y A11yMAS A11ySev2 FluentUIBlazor_Web MAS4.1.2
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
microsoft/fluentui-blazor#5533 ·
Los mantenedores suelen responder en 1 día
Todos los issues de microsoft/fluentui-blazor
Issues similares
-
In-car displays show 0 km/h and P while the AV drivesPosiblemente ocupada @bazilinskyy la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
bazilinskyy/coupled-sim#366 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 3 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
BaryoDev/umbraco-pwa#196 ·
Los mantenedores suelen responder en 1 día
-
bug flaky lsp-transport small
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
OpenTelemetryChatClient records gen_ai.response.finish_reasons as a JSON string instead of string[]Abiertoarea-ai bug untriaged
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
dotnet/extensions#7995 ·
Los mantenedores suelen responder en 1 día