Closed nikku closed 3 months ago
To be considered: Do not browser focus existing element, but only do so on tab navigation:
As per discussion discarded the automatic keyboard focus:
Updated with latest screenshots, preventing outline cut off via https://github.com/bpmn-io/diagram-js/pull/874/commits/a574bf01aeef9fcd06f4e7e057225093dc096dda. Now ready for review.
It looks good on Chrome, but there are some problems on Safari:
https://github.com/bpmn-io/diagram-js/assets/28307541/7c9ebc06-f333-462e-9e6c-e48b76ceae91
This is Safari 17.0
On Firefox, the outline is also cut off, but at least I can focus the header buttons, and the menu is never blurred:
So we have to decide if we invent a completely new outline, standardized across all browsers.
I'd keep that as a follow-up activity.
I'm OK with outline cut-off but it would be great if the focus worked correctly. I will check in the dev tools what is happening there.
So via TAB I cannot reach the header modules, and after I TAB out, it focusses the body.
OK it might be that I don't know my tool. I can tab to the header buttons via Option+TAB: https://stackoverflow.com/questions/1848390/safari-ignoring-tabindex
Firefox
Chrome
This PR improves the accessibility of the popup menu:
SPACE
andENTER
can be used as expected to toggle featuresAdditional notes:
Can be tried out using the following command on your local machine:
Closes #871