Skip to content

Commit d86d8bb

Browse files
adding dark theme support + lint
1 parent df33ecc commit d86d8bb

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

src/components/ComponentsSelection/ComponentsSelection.module.css

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@
1414
background: color-mix(in srgb, var(--sapBackgroundColor) 98%, #000 2%);
1515
}
1616

17+
@media (prefers-color-scheme: dark) {
18+
.row.providerRow {
19+
background: color-mix(in srgb, var(--sapBackgroundColor) 97%, #fff 3%);
20+
}
21+
}
22+
1723
.row.providerRow:hover {
1824
background: var(--sapList_Hover_Background);
1925
}
@@ -31,4 +37,4 @@
3137
.providerRow .checkBox {
3238
font-size: 0.875rem;
3339
opacity: 0.85;
34-
}
40+
}

src/components/ComponentsSelection/ComponentsSelection.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export const ComponentsSelection: React.FC<ComponentsSelectionProps> = ({
5252
return filtered.sort((a, b) => {
5353
const isCrossplaneA = a.name === 'crossplane';
5454
const isCrossplaneB = b.name === 'crossplane';
55-
55+
5656
if (isCrossplaneA && !isCrossplaneB) return -1;
5757
if (isCrossplaneB && !isCrossplaneA) return 1;
5858

0 commit comments

Comments
 (0)