Commit 5e0153c
authored
fix(ui): improve light-theme component rendering (#5526)
Fixes some light-theme specific quirks:
On chromium-based browsers, scrollbar always rendered in dark styling,
because the `color-scheme` property was missing, additionally the
`$osv-background` was not visible.
Before/After:
<img width="1704" height="520" alt="home_before"
src="https://github.com/user-attachments/assets/74bfeb1c-9dc9-44f6-9165-c98f1869fc30"
/>
<img width="1704" height="588" alt="home_after"
src="https://github.com/user-attachments/assets/78cf61b2-b1e5-4f03-a8b3-370751d636ba"
/>
---
The "Load More" spinner on the list page had a white color making it
invisible on light mode so that was fixed too by setting it to
`$osv-text-color` instead:
<img width="1700" height="462" alt="spinner_light"
src="https://github.com/user-attachments/assets/2383de41-b6ba-4771-a0dc-39858b3bc065"
/>
---
Finally, non-CVSS severity chips had poor contrast on light mode,
showing white text on a very light gray background (osv-grey-800):
<img width="944" height="248" alt="ubuntu_before"
src="https://github.com/user-attachments/assets/84c2f06c-fb15-4ecf-a803-adf50691786b"
/>
Fixed by updating the text color:
<img width="1274" height="318" alt="ubuntu_after"
src="https://github.com/user-attachments/assets/92081939-ab03-4ede-9a41-6431f47949a6"
/>1 parent 7418f5a commit 5e0153c
1 file changed
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| 34 | + | |
33 | 35 | | |
34 | 36 | | |
35 | 37 | | |
| |||
156 | 158 | | |
157 | 159 | | |
158 | 160 | | |
| 161 | + | |
159 | 162 | | |
160 | 163 | | |
161 | 164 | | |
| |||
179 | 182 | | |
180 | 183 | | |
181 | 184 | | |
182 | | - | |
183 | 185 | | |
184 | 186 | | |
185 | 187 | | |
| |||
309 | 311 | | |
310 | 312 | | |
311 | 313 | | |
312 | | - | |
| 314 | + | |
313 | 315 | | |
314 | 316 | | |
315 | 317 | | |
| |||
775 | 777 | | |
776 | 778 | | |
777 | 779 | | |
778 | | - | |
| 780 | + | |
779 | 781 | | |
780 | 782 | | |
781 | 783 | | |
| |||
0 commit comments