asterics / AsTeRICS-Grid

Free and simple to use app for augmentative and alternative communication (AAC) with offline support, flexible input methods and media access
https://grid.asterics.eu/
GNU Affero General Public License v3.0
55 stars 17 forks source link

Make modals accessible for screen readers #210

Open klues opened 1 year ago

klues commented 1 year ago

Accessibility of modals for screen readers currently is very limited. The modal for "set navigation" in edit mode has better accessibility, which also should be added to other modals, at least:

This change shouldn't be done on each modal manually, but a new Vue component like baseModal.vue should be created which takes care of all basic things for modals and is used by all other modals.

klues commented 1 year ago

Since there is now the new HTML5 element dialog, this should be used instead of the aria and role properties, see: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dialog