Problem/Motivation
When editing in ME mode via keyboard, I can still interact with the content on the page. My :focus is still brought to all elements that can gain focus such as:
- links
- buttons
- form elements
As a user, I would expect to only gain focus on ME components, as I am in editing mode.
Example screencast: https://share.cleanshot.com/zF4YWY1d
Steps to reproduce
Go to any project currently using ME, especially content with lots of links, and use tab to navigate. You will notice you will still gain focus on all header and navivation elements and such before you are even able to create content. These interactions are disabled in this mode which is great for a mouse user, but still confusing for an assistive tech user
Proposed resolution
Add a negative tabindex to all non-ME related interactive elements (tabindex=-1)
Confirm this works by using keyboard
Comments
Comment #2
justin2pin commentedComment #3
justin2pin commentedTest / review against https://git.drupalcode.org/project/mercury_editor/-/merge_requests/34
Comment #4
michaelablackham commentedThis was reviewed ina. couple different scenarios and works as expected now. I am no longer gain focus on non-ME links and buttons and form elements
This is working as expected. This is resolved!
Comment #5
justin2pin commented