Skip to content

Commit 4f2e186

Browse files
committed
html text on switch targeted with id html-switch so that it wouldn't appear black on first render
1 parent ab0e018 commit 4f2e186

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

app/src/components/left/CreateMenu.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,9 @@ const CreateMenu = (props): JSX.Element => {
266266
])}
267267
<FormGroup>
268268
<Box display="flex" alignItems="center" justifyContent="center">
269-
<p className="smallerText">HTML</p>
269+
<p className="smallerText" id="HTML-switch">
270+
HTML
271+
</p>
270272
<Switch
271273
checked={MUIMode}
272274
onChange={() => setMUIMode(!MUIMode)}

app/src/public/styles/style.css

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,11 +266,14 @@ span.material-symbols-outlined {
266266
font-size: 0.8rem;
267267
}
268268

269+
.smallerText #HTML-switch {
270+
color: #a9a9a9;
271+
}
272+
269273
.orangeText {
270274
color: #f08c00;
271275
}
272276
#MUIItem:hover {
273-
background-color: #474545a8;
274277
color: #f08c00;
275278
}
276279

0 commit comments

Comments
 (0)