Problem/Motivation
In elements.css, all links are styled to have no outline on focus. However, there are places where links used as buttons, and those should not have their focus outline overridden. They function as buttons and are not appearing within other text, so they should meet Focus Visible criteria.
Steps to reproduce
Go to admin/config/content/formats/manage/basic_html with CKEditor set as the text editor.
In "Toolbar configuration", the buttons do not get an outline when focused.
Proposed resolution
add a :not([role="button"]) to the selectors of the style removing outlines from focused links.
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
Comments
Comment #3
bnjmnmHere is a video of keyboard-navigating the CKEditor buttons, they get a focus outline!
https://youtu.be/cfudLyYMkTQ
Comment #4
zrpnrCan confirm that the css classes added in #2 are a big improvement, focus was invisible on all CKE toolbar buttons in Seven.
Changing to
:not([role="button"])is a non-destructive and careful way to fix this problem!I noticed that the focus for these buttons was missing in Claro, but it's due to a conflict with box-shadow in
ckeditor.admin.css, and is unrelated to this issue.Created #3208474: CKE admin toolbar - improve visibility on focus
Comment #5
wim leersLove that a bug discovered while working on CKEditor 5 (#3206687: Toolbar UI accessibility review) led to a bug being discovered in CKEditor 4 😄
Comment #7
lauriiiThe MR increases selector specificity and there is a regression with the table headings sort links as a result of that. Focused table headings have now duplicate underline:
Comment #11
quietone commentedSeven is no longer in core. I asked in #bugsmash where this issue should move to. Lendude responded saying that the same code is in Claro. Therefore I am moving this to Claro and adding lendude to the triage meta, #3332483: [Meta] Seven issue triage
Comment #12
bnjmnmWhile it's true that the code I mentioned was a problem is still in Claro, that same CSS file (in Claro) includes focus styling of equal-to-greater specificity that appears after the outline-removing styles, so the focus ring shows up for all links (and pretty much anything receiving focus).