owid-grapher icon indicating copy to clipboard operation
owid-grapher copied to clipboard

🐛 make key indicator collection more accessible

Open sophiamersmann opened this issue 10 months ago • 4 comments

I dropped the ball on the accordion's accessibility, so here I am making amends 😇

This PR makes the key-indicator-collection component more accessible to keyboard and screen reader users.

In particular,

  • Hidden content (i.e. closed accordion items) is removed from the tab sequence and the accessibility tree (uses the inert attribute to do so)
  • Fixes a bug where "clicking" on an accordion item by tabbing to it and then pressing Enter made the focus jump back to the first focusable element on the screen (the OWID logo in the header)

sophiamersmann avatar Apr 23 '24 15:04 sophiamersmann

  • #3527 Graphite 👈
  • master

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @sophiamersmann and the rest of your teammates on Graphite Graphite

sophiamersmann avatar Apr 23 '24 15:04 sophiamersmann

The accordion headers show up in the headings rotor for me (the whole button is wrapped in an h3). Don't they for you?

sophiamersmann avatar Apr 30 '24 13:04 sophiamersmann

This PR has had no activity within the last two weeks. It is considered stale and will be closed in 3 days if no further activity is detected.

github-actions[bot] avatar May 15 '24 07:05 github-actions[bot]

hey @ikesau, is this good to merge or should we make some more changes to the markup?

sophiamersmann avatar May 15 '24 15:05 sophiamersmann

This PR has had no activity within the last two weeks. It is considered stale and will be closed in 3 days if no further activity is detected.

github-actions[bot] avatar May 30 '24 07:05 github-actions[bot]

Ups, this one slipped through the cracks. I'll just merge this now and if there is something else to be done, we can do so in a separate pr :)

sophiamersmann avatar May 30 '24 07:05 sophiamersmann

Quick links (staging server):

Site Admin Wizard

Login: ssh owid@staging-site-a11y-key-indicator-collection

  • Site-screenshots: https://github.com/owid/site-screenshots/compare/a11y-key-indicator-collection
  • SVG tester: https://github.com/owid/owid-grapher-svgs/compare/a11y-key-indicator-collection
SVG tester:

Number of differences (default views): 0 ✅ Number of differences (all views): 0 ✅

Edited: 2024-05-30 07:47:01 UTC Execution time: 1.81 seconds

owidbot avatar May 30 '24 07:05 owidbot