Skip to content

Commit bbd62ab

Browse files
committed
fix theme toggle icons
both were showing by default when no preference was set
1 parent aa62a5b commit bbd62ab

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

shared/styles.css

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,12 +144,15 @@ textarea:focus {
144144
}
145145

146146
/* Theme Icons */
147-
[data-theme="light"] .icon-sun {
147+
#theme-toggle .icon-moon {
148148
display: none;
149149
}
150-
[data-theme="dark"] .icon-moon {
150+
[data-theme="dark"] #theme-toggle .icon-sun {
151151
display: none;
152152
}
153+
[data-theme="dark"] #theme-toggle .icon-moon {
154+
display: block;
155+
}
153156

154157
/* Settings Menu Popover */
155158
.settings-menu {

0 commit comments

Comments
 (0)