Skip to content

Commit d05cb6b

Browse files
[GA11YFIX-405] Update editor border color to meet WCAG color contrast minimum (3:1)
2 parents 2f0f1b1 + 833f2a1 commit d05cb6b

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

.changeset/stale-planes-dig.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@zendesk/help-center-wysiwyg": minor
3+
---
4+
5+
Changed --ck-color-base-border to a color that meets color contrast minimum requirement in WCAG 2.2 (3:1)

src/styles.css

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
/* foundational colors */
1717
--ck-color-text: var(--zd-color-grey-900);
18-
--ck-color-base-border: #d8dcde;
18+
--ck-color-base-border: var(--zd-color-grey-600);
1919
--ck-color-focus-border: var(--zd-color-grey-700);
2020

2121
/* focus style/color overrides (in favor of custom :focus-visible styles) */
@@ -98,6 +98,11 @@ a.ck.ck-button:focus {
9898
border-color: transparent;
9999
}
100100

101+
/* Toolbar separators can keep on being very light because they're "non-essential" graphics, according to WCAG */
102+
.ck.ck-toolbar .ck.ck-toolbar__separator {
103+
background: var(--zd-color-grey-300);
104+
}
105+
101106
.ck.ck-button:focus-visible,
102107
.ck.ck-toolbar:focus-visible,
103108
.ck.ck-content.ck-editor__editable.ck-focused,

0 commit comments

Comments
 (0)