Update kbn-accessible-click directive to differentiate between links and buttons. #11810
Labels
release_note:enhancement
Team:Platform-Design
Team Label for Kibana Design Team. Support the Analyze group of plugins.
Per #11513, only elements which are meant to act as buttons should have the button role and respond to the space bar keypress event. We need to update the
kbn-accessible-click
directive to allow engineers to specify whether it should behave as a button or not:kbn-accessible-click="button"
, the element should act as a button.kbn-accessible-click
, the element should not act as a button.We'll have to update each instance in which this directive is used, to specify the correct role.
See https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Techniques/Using_the_button_role for more info.
The text was updated successfully, but these errors were encountered: