-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve Dev Tools accessibility #13496
Conversation
Use a button isntead of a link will solve all accessibility issues, and we just need to style the button the same way we style the links.
This will be needed for situations in which the initialization need to be started manually, and a simple directive won't be enough.
Jenkins, test this |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great @timroes! I did notice that I wasn't able to tab into the code editor under the "History" tab. Is this something you want to address as part of this PR?
@@ -27,10 +28,10 @@ | |||
aria-labelledby="consoleRequestOptions" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we change this element to a <button>
too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assume, you doesn't mean the ul
, but got confused with the lines (most likely because GitHub collapsed the code in the middle of the element :D) I anyway made both a.editor-action
also into button
s.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops yep that's what I meant! Thanks.
Backports:
|
* Make console actions accessible Use a button isntead of a link will solve all accessibility issues, and we just need to style the button the same way we style the links. * Create kbnUiAceKeyboardModeService This will be needed for situations in which the initialization need to be started manually, and a simple directive won't be enough. * Make console input box accessible * Make editor_actions buttons instead of links
Release Note: Console no longer traps keyboard focus. You can quit editing with Escape.
This PR will make the console in the devtools more accessible and fix #11522
The console input will now have the same keyboard mode introduced #13339
Also the action buttons are now accessible via keyboard.
There are some issues still open on which I would like feedback: