From 623988b29a4d4469b2445df88a53d4f62c5682c0 Mon Sep 17 00:00:00 2001 From: Jessie Keck Date: Fri, 13 Dec 2019 15:42:52 -0800 Subject: [PATCH 1/2] Update README to include section about aria-labels. --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index d768427..126a8cb 100644 --- a/README.md +++ b/README.md @@ -92,6 +92,20 @@ Blacklight::Hierarchy::Engine.config.opened_icon = '➖' ``` +### Aria Labels +For screen reader purposes we have used "Toggle subgroup" as the aria-label attribute of the button. This is internationalized using rails' i18n feature. + +The field name is used in the key to allow for facet specific aria labels or defaults back to the generic key/"Toggle subgroup" text. + +```yml +# config/locales/en.yml +en: + blacklight: + hierarchy: + format_ssim_toggle_aria_label: Toggle format section + toggle_aria_label: Toggle call number section +``` + ## Caveats This code was ripped out of another project, and is still quite immature as a standalone project. Every effort has been made to make it as plug-and-play as possible, but it may stomp on Blacklight in unintended ways (e.g., ways that made sense in context of its former host app, but which aren't compatible with generic Blacklight). Proceed with caution, and report issues. From 9ac1681bc0a8692245674309a05a5d2e244545d4 Mon Sep 17 00:00:00 2001 From: Jessie Keck Date: Fri, 13 Dec 2019 14:29:55 -0800 Subject: [PATCH 2/2] Bump version --- lib/blacklight/hierarchy/version.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/blacklight/hierarchy/version.rb b/lib/blacklight/hierarchy/version.rb index acda6e0..73e88ac 100644 --- a/lib/blacklight/hierarchy/version.rb +++ b/lib/blacklight/hierarchy/version.rb @@ -1,5 +1,5 @@ module Blacklight module Hierarchy - VERSION = '3.0.0'.freeze + VERSION = '4.0.0'.freeze end end