Skip to content

Commit 0c120e9

Browse files
authored
fix: Passing grade tooltip color contrast ratio (#39)
1 parent bc648ea commit 0c120e9

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

paragon/_progress.scss

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@
108108
color: $text-color;
109109
}
110110
.donut-chart-label {
111-
color: #4B5563;
111+
color: $gray-700;
112112
}
113113
}
114114
.grade-bar .grade-bar__base {
@@ -168,15 +168,15 @@
168168
}
169169
}
170170
#minimum-grade-tooltip.bg-primary-500 {
171-
background: #9CA3AF !important;
172-
border-color: #9CA3AF !important;
171+
background: $gray-700 !important;
172+
border-color: $gray-700 !important;
173173
filter: none;
174174
.arrow {
175175
&:before {
176-
border-bottom-color: #9CA3AF !important;
176+
border-bottom-color: $gray-700 !important;
177177
}
178178
&:after {
179-
border-bottom-color: #9CA3AF !important;
179+
border-bottom-color: $gray-700 !important;
180180
}
181181
}
182182
.popover-body {

paragon/_variables.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ $primary-light: #F2F7F8;
44
$light-dark: #374151;
55
$text-color: #111827;
66
$text-color-primary: #515661;
7+
$gray-700: #4b5563;
78
$text-color-light: #515661;
89

910
// for toggle theme button

themes/dark/_extras.scss

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1099,15 +1099,15 @@ svg {
10991099
}
11001100
}
11011101
#minimum-grade-tooltip.bg-primary-500 {
1102-
background: #9CA3AF !important;
1103-
border-color: #9CA3AF !important;
1102+
background: $gray-700 !important;
1103+
border-color: $gray-700 !important;
11041104
filter: none;
11051105
.arrow {
11061106
&:before {
1107-
border-bottom-color: #9CA3AF !important;
1107+
border-bottom-color: $gray-700 !important;
11081108
}
11091109
&:after {
1110-
border-bottom-color: #9CA3AF !important;
1110+
border-bottom-color: $gray-700 !important;
11111111
}
11121112
}
11131113
.popover-body {

0 commit comments

Comments
 (0)