Problem/Motivation
Even with the improvements coming with #3283803: [upstream] CKE5 toggleable toolbar items not enough contrast, there is still an issue with CKEditor 5 conveying button's active state using color only. This can be addressed fairly easily by adding an outline to the .ck-on
class.
This was also an issue in CKEditor 4 so it's not a regression and thus not stable blocking, but it's an easily implemented accessibility improvement that should at the very latest be in the 10.0.0 release.
Steps to reproduce
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
Comment | File | Size | Author |
---|---|---|---|
#26 | wcag-test.png | 287.91 KB | jannakha |
#26 | after-patch.png | 40.97 KB | jannakha |
#23 | 3306209_23.patch | 512 bytes | athyamvidyasagar |
#23 | editor-after.png | 6.94 KB | athyamvidyasagar |
#18 | 3306209-nr-bot.txt | 85 bytes | needs-review-queue-bot |
Issue fork drupal-3306209
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 3306209-add-outline-to changes, plain diff MR !6984
Comments
Comment #2
bnjmnmComment #3
smustgrave CreditAttribution: smustgrave at Mobomo commentedLike this?
Comment #4
wim leersComment #6
mgiffordSounds like a WCAG 1.4.1 issue.
Comment #7
pameeela CreditAttribution: pameeela commentedSeems simple enough but I know better than to RTBC a CSS patch :)
Passes manual testing.
Before patch:
After patch:
Comment #8
needs-review-queue-bot CreditAttribution: needs-review-queue-bot as a volunteer commentedThe Needs Review Queue Bot tested this issue. It either no longer applies to Drupal core, or fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".
Apart from a re-roll or rebase, this issue may need more work to address feedback in the issue or MR comments. To progress an issue, incorporate this feedback as part of the process of updating the issue. This helps other contributors to know what is outstanding.
Consult the Drupal Contributor Guide to find step-by-step guides for working with issues.
Comment #9
gauravvvv CreditAttribution: gauravvvv at Axelerant for Drupal India Association commentedRe-rolled patch #3, for 10.1.x. Also I have removed
!important
and improved the nesting of element. please review.Comment #10
gauravvvv CreditAttribution: gauravvvv at Axelerant for Drupal India Association commentedActive state with
#2977ff
color outline.After patch #10:
Comment #11
wim leersI think this needs to be RTBC'd by one of these folks:
Comment #12
pameeela CreditAttribution: pameeela commentedPatch #10 looks much better!
Comment #13
wim leers#12 Agreed! But that made me realize something … this is currently being tested in a single theme (Claro).
We also need to verify that this works correctly in other themes. At minimum also Olivero (e.g. on the comment form). Tagging for that.
Comment #14
pameeela CreditAttribution: pameeela commentedIt works in Olivero and Stark. Seems very RTBC-able but will await accessibility review.
Comment #15
smustgrave CreditAttribution: smustgrave at Mobomo commentedNot on the accessibility team but tested and this failures color contrast.
Comment #16
pameeela CreditAttribution: pameeela commented@smustgrave this issue adds an outline matching the existing color scheme, so I think changing the color scheme should be a separate issue?
Comment #17
pameeela CreditAttribution: pameeela commentedYeah, #3283803-12: [upstream] CKE5 toggleable toolbar items not enough contrast explains the current active state behaviour which is handled upstream in CKEditor.
Comment #18
needs-review-queue-bot CreditAttribution: needs-review-queue-bot as a volunteer commentedThe Needs Review Queue Bot tested this issue. It no longer applies to Drupal core. Therefore, this issue status is now "Needs work".
Apart from a re-roll or rebase, this issue may need more work to address feedback in the issue or MR comments. To progress an issue, incorporate this feedback as part of the process of updating the issue. This helps other contributors to know what is outstanding.
Consult the Drupal Contributor Guide to find step-by-step guides for working with issues.
Comment #19
smustgrave CreditAttribution: smustgrave at Mobomo commentedSo what's the accessibility review needed for? If it fails and we accept it fails do they still need to check?
That failure is valid too meant to add in my comment. Didn't apply anymore.
Comment #20
pameeela CreditAttribution: pameeela commentedI’m not sure, since it’s sticking to the existing color scheme, and changing that is definitely out of scope.
Comment #22
mgiffordJust make sure it meets color contrast requirements. Removing "Needs Accessibilty Review" unless this is more complicated.
Comment #23
athyamvidyasagar CreditAttribution: athyamvidyasagar at Melity commentedHighlighted the active buttons on CKEditor 5 .
Comment #26
jannakha CreditAttribution: jannakha as a volunteer and at Tomato Elephant Studio commentedPatch in merge request: MR !6984
After patch:
WCAG test shows pass for Graphical Objects and User Interface Components:
Comment #27
smustgrave CreditAttribution: smustgrave at Mobomo commentedChange makes sense.
Comment #32
nod_Committed 229f626 and pushed to 11.x. Thanks!
Comment #33
nod_Comment #34
pameeela CreditAttribution: pameeela at Technocrat commented