Skip to content

Commit bf332b0

Browse files
Vikram-Hegdeknadh
andauthored
fix: dark mode style fixes for scrollbars and chevron icon colors (#16)
* fix: dark mode style fixes for scrollbars and chevron icon colors * Fix incorrect sizing and clipping issue in accordion chevron. --------- Co-authored-by: Kailash Nadh <kailash@nadh.in>
1 parent 084626b commit bf332b0

2 files changed

Lines changed: 8 additions & 5 deletions

File tree

src/css/01-theme.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@
7676
}
7777

7878
[data-theme="dark"] {
79+
color-scheme: dark;
7980
--background: #09090b;
8081
--foreground: #fafafa;
8182
--card: #18181b;

src/css/accordion.css

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,13 @@
4141

4242
&::after {
4343
content: "";
44-
width: 1rem;
45-
height: 1rem;
46-
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
47-
background-size: contain;
48-
background-repeat: no-repeat;
44+
width: 1em;
45+
height: 1em;
46+
flex-shrink: 0;
47+
background-color: currentColor;
48+
mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
49+
mask-size: contain;
50+
mask-repeat: no-repeat;
4951
transition: transform var(--transition-fast);
5052
}
5153

0 commit comments

Comments
 (0)