Skip to content

Commit 7debb26

Browse files
author
Vivek Vishal
authored
Merge pull request #6359 from Souradip121/checkboxfix
Fix default checkbox appearing
2 parents fa9865f + 188812f commit 7debb26

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/sections/Community/Handbook/Handbook.style.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,15 @@ export const HandbookWrapper = styled.div`
208208
cursor: pointer;
209209
padding: 0.2em;
210210
}
211+
input[type=checkbox] {
212+
display: none;
213+
}
211214
215+
/* Exception: keep checkbox visible inside .dark-theme-toggle */
216+
.dark-theme-toggle input[type="checkbox"] {
217+
display: inline-block;
218+
}
219+
212220
input[type=checkbox] + label:before {
213221
content: url('data:image/svg+xml; utf8, <svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" fill="white" viewBox="0 4 24 24"><path d="M20.285 2l-11.285 11.567-5.286-5.011-3.714 3.716 9 8.728 15-15.285z"/></svg>');;
214222
border: 0.1em solid #000;

0 commit comments

Comments
 (0)