FritzAndFriends / ResourceManagement

A resource management application originally designed for Sebastian Riding Associates.
MIT License
35 stars 28 forks source link

Accessibility - Ensure Manager View Calendar Changes Are Announced to Screen Readers #48

Open mdarrik opened 5 years ago

mdarrik commented 5 years ago

I asked this question in chat just before you hit that bug where the calendar view wasn't actually updating (#44 ). But there needs to be some announcement for screen readers when the ManagerView data actually changes.

So I see two potential solutions going forward:

  1. Change each calendar view into a dynamically generated page.
    • Pro: Makes return navigation to a specific range easier.
    • Pro: Can use a link instead of a button and don't have to worry about aria-states.
    • Pro: Changes are expected by SR users, so don't have to worry about announcing things have changed if it's clear that they are clicking a link.
    • Con: May have to refactor the page/component some to make work
    • Con: Have to be careful if want to use the MangerView as more than just a page-component
  2. Use aria-live or the HTML "output" element for the calendar. Scott O'Hara has a great write-up on the html output element here: "output: HTML's native live region element"
    • Pro: Don't have to configure routing & links.
    • Pro: Keeps with the current logic of the page/component
    • Con: Aria-states can be prone to errors
    • Con: Output may not work since a calendar may be better semantically written as an ordered list.