Skip to content

Commit 37dff93

Browse files
committed
fix(BuilderPage): use css variables for background and icon border color
1 parent 5f84956 commit 37dff93

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

src/components/BuilderPage.module.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@
99
-webkit-overflow-scrolling: touch;
1010
}
1111

12+
.builder {
13+
overflow: auto;
14+
height: 100vh;
15+
background: var(--color-background);
16+
}
17+
1218
.pageWrapper {
1319
display: grid;
1420
grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));

src/components/BuilderPage.tsx

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -433,14 +433,7 @@ function BuilderPage({
433433
}}
434434
render={({ style }) => (
435435
<main className={styles.root} style={style}>
436-
<div
437-
id="builder"
438-
style={{
439-
overflow: "auto",
440-
height: "100vh",
441-
background: colors.primary,
442-
}}
443-
>
436+
<div id="builder" className={styles.builder}>
444437
<button
445438
className={styles.closeButton}
446439
aria-label="close builder"

src/components/Popup.module.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
}
1515

1616
.icon {
17-
border: 1px solid white;
17+
border: 1px solid var(--color-text);
1818
margin-left: 0;
1919
margin-right: 5px;
2020
}

0 commit comments

Comments
 (0)