Skip to content

Commit 8897e57

Browse files
Accessibility Fixes for Indigo Theme/Plugin Based on Audit (#34)
1 parent 0c120e9 commit 8897e57

File tree

12 files changed

+32
-19
lines changed

12 files changed

+32
-19
lines changed

paragon/_account.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,7 @@
209209
right: 15px;
210210
top: 15px;
211211
background: $primary;
212+
outline-offset: 3px;
212213
svg {
213214
display: none;
214215
}

paragon/_dates.scss

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,6 @@ div[role=heading].h2 + .list-unstyled.m-0.mt-4.pt-2 {
9494
&.bg-warning-300 {
9595
border: 2px solid $primary !important;
9696
background: white !important;
97-
&:before {
98-
display: none !important;
99-
}
10097
}
10198
}
10299
}

paragon/_discussion.scss

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,4 +238,11 @@ html[data-mce-style]{
238238
.mce-content-body{
239239
color: inherit;
240240
background-color: transparent;
241-
}
241+
}
242+
243+
[for='post-type-question'],
244+
[for='post-type-discussion'] {
245+
.text-primary-300 {
246+
color: #6B7A94 !important;
247+
}
248+
}

paragon/_extras.scss

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
left: 0;
4848
right: 0;
4949
bottom: 0;
50-
background-color: #AEC7F6;
50+
background-color: $light-theme-switch-bg-color;
5151
transition: .4s;
5252

5353
&::before{
@@ -71,3 +71,11 @@
7171
}
7272
}
7373
}
74+
75+
// course title focus visibility styling
76+
.course-card {
77+
.pgn__card-header,
78+
.pgn__card-header-content {
79+
overflow: visible !important;
80+
}
81+
}

paragon/_footer.scss

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -252,9 +252,7 @@ footer.tutor-container {
252252
padding: 4px 18px;
253253
border-radius: 6px;
254254
margin: 0;
255-
&:before {
256-
display: none;
257-
}
255+
258256
&.btn-outline-primary {
259257
border: 1px solid #D1D5DB;
260258
color: #374151;
@@ -441,4 +439,4 @@ footer.tutor-container {
441439
.btn.btn-link {
442440
font-size: 14px;
443441
}
444-
}
442+
}

paragon/_header.scss

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
border: none !important;
4040
padding: 0 !important;
4141
box-shadow: none !important;
42-
outline: none !important;
42+
outline-offset: 4px;
4343
background: none !important;
4444
position: absolute;
4545
left: 15px;
@@ -178,9 +178,6 @@
178178
font-size: 14px;
179179
font-weight: 500;
180180
line-height: 20px;
181-
&:before {
182-
display: none !important;
183-
}
184181
&:after {
185182
display: inline-block;
186183
vertical-align: middle;
@@ -512,4 +509,8 @@
512509
color: #374151;
513510
}
514511
}
515-
}
512+
}
513+
// skip to main content styling fix overlap with menu icon
514+
.indigo-header-version .sr-only-focusable + .container-xl {
515+
position: relative;
516+
}

paragon/_learning.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ div[data-learner-type=b2c_learner] {
207207
text-decoration: none;
208208
}
209209
svg {
210-
color: #9CA3AF;
210+
color: #717D8A;
211211
}
212212
}
213213
}

paragon/_login.scss

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,7 @@
113113
margin: 0 32px -1px 0;
114114
color: $text-color-primary;
115115
background: none !important;
116-
&:before {
117-
display: none;
118-
}
116+
119117
&.active, &:hover {
120118
color: $primary;
121119
border-bottom: 2px solid $primary;

paragon/_profile.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,7 @@
245245
right: 15px;
246246
top: 15px;
247247
background: $primary;
248+
outline-offset: 3px;
248249
svg {
249250
display: none;
250251
}

paragon/_variables.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ $text-color: #111827;
66
$text-color-primary: #515661;
77
$gray-700: #4b5563;
88
$text-color-light: #515661;
9+
$light-theme-switch-bg-color: #1D386A;
910

1011
// for toggle theme button
1112
$page-color-transition: transparent .2s ease, color .2s ease;

0 commit comments

Comments
 (0)