What is a suitable WAI-ARIA role attribute for a map element

后端 未结 2 1847
萌比男神i
萌比男神i 2021-01-05 04:38

In my webpage, I have half of it being a map display using Google maps. What aria-role should I add to that canvas element which is displaying the

2条回答
  •  没有蜡笔的小新
    2021-01-05 05:11

    If you are using google maps, you should use role="application" because it is possible to use a screen reader to interact with the map and according to the ARIA spec site the application role is for:

    A structure containing one or more focusable elements requiring user input, such as keyboard or gesture events, that do not follow a standard interaction pattern supported by a widget role.

    This is especially true for users who are not blind but have low vision and can actually benefit from the map.

    https://www.w3.org/TR/wai-aria/#application

提交回复
热议问题