Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ARIA improvements for screen readers
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