Skip to content

v4.0.0

Compare
Choose a tag to compare
@jkeck jkeck released this 13 Dec 23:51
8cb5eff

v3.0.0...v4.0.0

Version 4 updates the markup and styling of the hierarchy gem in order to support better keyboard accessibility. Previous versions were not accessible via the keyboard as the only focusable target was the facet link itself, preventing a keyboard-only user from being able to traverse the hierarchy.

We're now using an aria-labeled button in front of the link to provide a keyboard focusable target. The content of this button is configurable for both the closed and open states (see the README for more information).

We're also now including styling that should be more usable generically. We've found that in many cases various applications were overriding or just rolling their own styling entirely. This version attempts to learn from those overrides and provide a better experience out of the box.