Skip to content

role="application" #274

Closed
Closed
@Malvoz

Description

@Malvoz

I wonder if role="application" should replace role="region" on the leaflet-container. See w3c/csswg-drafts#5275 (comment) for background information.

Screen readers have different modes of operation, I believe the default mode is usually "browse mode" (this is true for NVDA), in browse mode you can use the arrow keys to read text in a certain direction, for example. Because browse mode intercepts keyboard commands, it is currently not possible to:

  • Pan the map display
  • Open the context menu

There's also an issue with misplaced popups.

With the implications on keyboard interactions from role="application" we wouldn't have these issues, because:

Keyboard interaction is completely under the web author's control and can be anything associated with the particular widget being implemented.

But that can cause confusion for the user, as they may not be able to operate their screen reader as they typically do with keyboard commands (see NVDA default keyboard shortcuts for reference). Of course, a user can switch between modes, but how would they know to do so, to enable panning etc.? Does the typical screen reader user even know how to manually switch modes? I obviously don't have a good enough understanding of how every day screen reader users use their tool. @nchan0154 do you happen to have any insight to this?

Esri's a11y-map uses role="application" (and their interaction model for keyboard users is superb by the way, panning is the primary interaction method as opposed to sequentially navigating through focusable features).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions