Commit eab6894
authored
Fix dark mode styling on first load if dark mode is system preference (#2128)
## Changes
- Add missing CSS rules in front-page.scss and layout.scss for dark mode
styling in situations as described below
## Context
Previously, these three elements only checked for data-theme="dark",
which is not set if the page is first loaded and dark mode is the system
default.
## Before
<img width="980" height="905" alt="Screenshot_20260128_195213"
src="https://github.com/user-attachments/assets/db223208-61e7-4eba-b1c6-91d63d09b6ee"
/>
## After
<img width="980" height="905" alt="Screenshot_20260128_195207"
src="https://github.com/user-attachments/assets/b392c26e-5ceb-4e6b-988c-18d725ac0d99"
/>2 files changed
+17
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
56 | 62 | | |
57 | 63 | | |
58 | 64 | | |
| |||
112 | 118 | | |
113 | 119 | | |
114 | 120 | | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
115 | 127 | | |
116 | 128 | | |
117 | 129 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
116 | 121 | | |
117 | 122 | | |
118 | 123 | | |
| |||
0 commit comments