Accessibility enhancements
-
The “Tag Attribute” should have the aria-expanded state updated when the target is open/closed. For example, and as a quick fix/hack I added the following.
$('.collapseomatic').attr('aria-expanded', 'false') $('.collapseomatic').on('click', function() { if ($(this).hasClass('colomat-close')) { $(this).attr('aria-expanded', false) } else { $(this).attr('aria-expanded', true) } })
https://www.w3.org/WAI/GL/wiki/Using_aria-expanded_to_indicate_the_state_of_a_collapsible_element
- The topic ‘Accessibility enhancements’ is closed to new replies.