Skip to content

Commit 4cb4839

Browse files
authored
Merge pull request #1380 from elit-altum/updating-high-contrast-theme
fix(high-contrast-theme): fixed failing WCAG AAA checks
2 parents 069a32d + 97f02fd commit 4cb4839

File tree

2 files changed

+20
-20
lines changed

2 files changed

+20
-20
lines changed

client/styles/abstracts/_variables.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ $themes: (
186186
modal-button-color: #333,
187187
heading-text-color: #e1e1e1,
188188
secondary-text-color: #e1e1e1,
189-
inactive-text-color: #c1c1c1,
189+
inactive-text-color: #f2f2f2,
190190
background-color: #333,
191191
button-background-color: $white,
192192
button-color: $black,
@@ -201,14 +201,14 @@ $themes: (
201201
modal-background-color: #444,
202202
modal-button-background-color: #C1C1C1,
203203
modal-border-color: #949494,
204-
icon-color: #a9a9a9,
204+
icon-color: #d9d9d9,
205205
icon-hover-color: $yellow,
206206
icon-toast-hover-color: $yellow,
207207
shadow-color: rgba(0, 0, 0, 0.16),
208208
console-background-color: #4f4f4f,
209209
console-color: $black,
210210
console-header-background-color: #3f3f3f,
211-
console-header-color: #b5b5b5,
211+
console-header-color: #d9d9d9,
212212
console-info-background-color: $lightsteelblue,
213213
console-warn-background-color: $orange,
214214
console-debug-background-color: $dodgerblue,

client/styles/components/_p5-contrast-codemirror-theme.scss

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -31,55 +31,55 @@ $p5-contrast-activeline: #999999;
3131
color: $p5-contrast-white;
3232
}
3333

34-
.cm-s-p5-contrast .cm-comment {
34+
.cm-s-p5-contrast span .cm-comment {
3535
color: $p5-contrast-lightgray;
3636
}
3737

38-
.cm-s-p5-contrast .cm-def {
38+
.cm-s-p5-contrast span .cm-def {
3939
color: $p5-contrast-blue;
4040
}
4141

42-
.cm-s-p5-contrast .cm-string {
42+
.cm-s-p5-contrast span .cm-string {
4343
color: $p5-contrast-green;
4444
}
4545

46-
.cm-s-p5-contrast .cm-string-2 {
46+
.cm-s-p5-contrast span .cm-string-2 {
4747
color: $p5-contrast-green;
4848
}
4949

50-
.cm-s-p5-contrast .cm-number {
50+
.cm-s-p5-contrast span .cm-number {
5151
color: $p5-contrast-pink;
5252
}
5353

54-
.cm-s-p5-contrast .cm-keyword {
54+
.cm-s-p5-contrast span .cm-keyword {
5555
color: $p5-contrast-yellow;
5656
}
5757

58-
.cm-s-p5-contrast .cm-variable {
58+
.cm-s-p5-contrast span .cm-variable {
5959
color: $p5-contrast-white;
6060
}
6161

62-
.cm-s-p5-contrast .cm-variable-2 {
62+
.cm-s-p5-contrast span .cm-variable-2 {
6363
color: $p5-contrast-white;
6464
}
6565

66-
.cm-s-p5-contrast .cm-property {
66+
.cm-s-p5-contrast span .cm-property {
6767
color: $p5-contrast-white;
6868
}
6969

70-
.cm-s-p5-contrast .cm-atom {
70+
.cm-s-p5-contrast span .cm-atom {
7171
color: $p5-contrast-pink;
7272
}
7373

74-
.cm-s-p5-contrast .cm-operator {
74+
.cm-s-p5-contrast span .cm-operator {
7575
color: $p5-contrast-lightgray;
7676
}
7777

7878
.cm-s-p5-contrast .cm-linenumber {
7979
color: $p5-contrast-number;
8080
}
8181

82-
.cm-s-p5-contrast .CodeMirror-selected {
82+
.cm-s-p5-contrast div .CodeMirror-selected {
8383
background-color: $p5-contrast-selected;
8484
}
8585

@@ -96,25 +96,25 @@ $p5-contrast-activeline: #999999;
9696
color: #f00;
9797
}
9898

99-
.cm-s-p5-contrast .CodeMirror-matchingbracket {
99+
.cm-s-p5-contrast span .CodeMirror-matchingbracket {
100100
outline: 1px solid $p5-contrast-lightgray;
101101
outline-offset: 1px;
102102
color: $p5-contrast-white !important;
103103
}
104104

105-
.cm-s-p5-contrast .cm-qualifier {
105+
.cm-s-p5-contrast span .cm-qualifier {
106106
color: $p5-contrast-yellow;
107107
}
108108

109-
.cm-s-p5-contrast .cm-tag {
109+
.cm-s-p5-contrast span .cm-tag {
110110
color: $p5-contrast-orange;
111111
}
112112

113-
.cm-s-p5-contrast .cm-builtin {
113+
.cm-s-p5-contrast span .cm-builtin {
114114
color: $p5-contrast-yellow;
115115
}
116116

117-
.cm-s-p5-contrast .cm-attribute {
117+
.cm-s-p5-contrast span .cm-attribute {
118118
color: $p5-contrast-white;
119119
}
120120

0 commit comments

Comments
 (0)