Skip to content

Commit

Permalink
ARIA improvements for screen readers
Browse files Browse the repository at this point in the history
1. Set unused <input> boxes to aria-hidden. But I'm not sure if it will be an issue that a window that sends its input and then requests new input will briefly become aria-hidden before becoming aria-hidden=off again. If it is then we could make them hidden only if they don't request input again.
2. Set buffer windows to have role=log. Probably no functional change.
3. Set grid windows to have role=status. This role has a default aria-live=polite, which we don't want, because then it would read out the status window every time when usually it's not important, like the turn counter changing, so set aria-life=off. But when there are more than 3 lines in the grid window set aria-live=polite, so that box quotes, menus, or other large constructions in the window will be read out to the player.
  • Loading branch information
curiousdannii committed Jul 8, 2022
1 parent 6907eb2 commit f14cdab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/upstream/asyncglk

0 comments on commit f14cdab

Please sign in to comment.