[web:a11y] reconsider applying role="dialog" to arbitrary routes #168247
Labels
a: accessibility
Accessibility, e.g. VoiceOver or TalkBack. (aka a11y)
customer: castaway
fyi-accessibility
For the attention of Framework Accessibility team
P2
Important issues not at the top of the work list
platform-web
Web applications specifically
team-web
Owned by Web platform team
triaged-web
Triaged by Web platform team
Currently, the web engine applies
role="dialog"
as a default fallback for all routes. This logic predatesSemanticsRole.dialog
andSemanticsRole.alertDialog
. Because the engine couldn't tell if a route is a dialog it used the dialog role just in case. This seems no longer necessary now that we have the formal roles, so perhaps it is time to remove this fallback. Basically, the proposal is to remove this line:flutter/engine/src/flutter/lib/web_ui/lib/src/engine/semantics/route.dart
Line 108 in 7448418
The text was updated successfully, but these errors were encountered: