Skip to content

Commit 033a06f

Browse files
committed
styling update
1 parent 5191156 commit 033a06f

File tree

2 files changed

+17
-3
lines changed

2 files changed

+17
-3
lines changed

src/components/ChainSelector/ChainSelector.module.css

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,17 @@
66
margin: 0;
77
}
88

9+
/* Label for the dropdown */
10+
.label {
11+
display: block;
12+
font-size: 0.875rem;
13+
font-style: italic;
14+
font-weight: 500;
15+
color: var(--gray-500);
16+
margin-bottom: 0.5rem;
17+
cursor: pointer;
18+
}
19+
920
/* Prevent any pseudo-elements from leaking out */
1021
.container *,
1122
.container *::before,
@@ -26,8 +37,7 @@
2637
align-items: center;
2738
gap: 0.5rem;
2839
padding: 1rem 1rem;
29-
background: white;
30-
border: 1px solid var(--color-border-light);
40+
background: var(--gray-100);
3141
cursor: pointer;
3242
transition: all 0.2s ease;
3343
position: relative;
@@ -38,7 +48,7 @@
3848
}
3949

4050
.trigger:hover {
41-
background-color: var(--gray-50);
51+
background-color: var(--gray-200);
4252
}
4353

4454
.trigger:focus {

src/components/ChainSelector/ChainSelector.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,12 @@ export function ChainSelector({
141141

142142
return (
143143
<div className={styles.container} ref={containerRef}>
144+
<label className={styles.label} htmlFor="chain-selector-trigger">
145+
Select blockchain:
146+
</label>
144147
<div className={styles.controls}>
145148
<button
149+
id="chain-selector-trigger"
146150
className={styles.trigger}
147151
onClick={toggleDropdown}
148152
aria-expanded={isOpen}

0 commit comments

Comments
 (0)