This repository was archived by the owner on Sep 5, 2024. It is now read-only.
Commit 4e3f7a7
committed
fix(theming): dark contrast used incorrectly when only contrastStrongLightColors defined
- if `contrastStrongLightColors` is defined and `contrastLightColors` is not,
`getContrastType()` was incorrectly picking `dark` instead of `strongLight`
- remove all of the duplicate `contrastLightColors` entries that had to remain before,
due to this bug
- improve JSDoc
- checkbox's checkmark should always match the background color
and never depend on the contrast of the accent color
- remove duplicate theme style generation for checkbox and button1 parent 3a291ac commit 4e3f7a7
File tree
5 files changed
+23
-40
lines changed- src
- components
- button
- demoBasicUsage
- checkbox
- core/services/theming
5 files changed
+23
-40
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | 55 | | |
71 | 56 | | |
72 | 57 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | 16 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | 63 | | |
68 | 64 | | |
69 | 65 | | |
| |||
76 | 72 | | |
77 | 73 | | |
78 | 74 | | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | 75 | | |
88 | 76 | | |
89 | 77 | | |
90 | 78 | | |
91 | | - | |
92 | 79 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
139 | | - | |
140 | 139 | | |
141 | 140 | | |
142 | 141 | | |
| |||
157 | 156 | | |
158 | 157 | | |
159 | 158 | | |
160 | | - | |
161 | 159 | | |
162 | 160 | | |
163 | 161 | | |
| |||
180 | 178 | | |
181 | 179 | | |
182 | 180 | | |
183 | | - | |
184 | 181 | | |
185 | 182 | | |
186 | 183 | | |
| |||
201 | 198 | | |
202 | 199 | | |
203 | 200 | | |
204 | | - | |
205 | 201 | | |
206 | 202 | | |
207 | 203 | | |
| |||
220 | 216 | | |
221 | 217 | | |
222 | 218 | | |
223 | | - | |
224 | 219 | | |
225 | 220 | | |
226 | 221 | | |
| |||
239 | 234 | | |
240 | 235 | | |
241 | 236 | | |
242 | | - | |
243 | 237 | | |
244 | 238 | | |
245 | 239 | | |
| |||
292 | 286 | | |
293 | 287 | | |
294 | 288 | | |
295 | | - | |
296 | 289 | | |
297 | 290 | | |
298 | 291 | | |
| |||
315 | 308 | | |
316 | 309 | | |
317 | 310 | | |
318 | | - | |
| 311 | + | |
319 | 312 | | |
320 | 313 | | |
321 | 314 | | |
| |||
352 | 345 | | |
353 | 346 | | |
354 | 347 | | |
355 | | - | |
| 348 | + | |
356 | 349 | | |
357 | 350 | | |
358 | 351 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1217 | 1217 | | |
1218 | 1218 | | |
1219 | 1219 | | |
| 1220 | + | |
| 1221 | + | |
| 1222 | + | |
| 1223 | + | |
1220 | 1224 | | |
1221 | | - | |
| 1225 | + | |
| 1226 | + | |
1222 | 1227 | | |
1223 | 1228 | | |
1224 | 1229 | | |
1225 | 1230 | | |
1226 | 1231 | | |
1227 | 1232 | | |
1228 | 1233 | | |
| 1234 | + | |
| 1235 | + | |
| 1236 | + | |
| 1237 | + | |
| 1238 | + | |
1229 | 1239 | | |
1230 | 1240 | | |
1231 | 1241 | | |
| |||
1237 | 1247 | | |
1238 | 1248 | | |
1239 | 1249 | | |
| 1250 | + | |
| 1251 | + | |
| 1252 | + | |
| 1253 | + | |
| 1254 | + | |
1240 | 1255 | | |
1241 | 1256 | | |
1242 | 1257 | | |
| |||
1313 | 1328 | | |
1314 | 1329 | | |
1315 | 1330 | | |
| 1331 | + | |
| 1332 | + | |
| 1333 | + | |
| 1334 | + | |
1316 | 1335 | | |
1317 | 1336 | | |
1318 | 1337 | | |
| |||
0 commit comments