Skip to content

Commit 9ff8fc8

Browse files
committed
styled both drop downs
1 parent c851c05 commit 9ff8fc8

File tree

4 files changed

+116
-5
lines changed

4 files changed

+116
-5
lines changed

src/app/components/Actions/DropDown.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ const DropDown = ({
2121
<div className='dropdown-container'>
2222
<Select
2323
placeholder='Select Hook'
24+
classNamePrefix='react-select'
2425
onChange={handleChange}
2526
options={options}
2627
value={options.find((option) => option.value === dropdownSelection)}

src/app/styles/components/_actionComponent.scss

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,6 @@
9494
background: var(--button-primary-bg);
9595
}
9696

97-
.jump-button:hover {
98-
background: var(--text-primary);
99-
}
100-
10197
.current-location {
10298
color: var(--color-primary);
10399
background: #f0fdfa;

src/app/styles/components/_performanceVisx.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
.routes,
6363
.control-select option {
6464
padding: 0.5rem;
65-
color: #1e293b;
65+
color: var(--text-primary);
6666
}
6767

6868
// bar graph background

src/app/styles/layout/_travelContainer.scss

Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,117 @@
1313
min-width: 90px;
1414
margin: 8px;
1515
}
16+
17+
.react-select__control {
18+
background-color: var(--bg-secondary) !important;
19+
border: 1px solid var(--border-color) !important;
20+
border-radius: 6px !important;
21+
min-height: 36px !important;
22+
box-shadow: none !important;
23+
cursor: pointer !important;
24+
transition: all 200ms ease !important;
25+
}
26+
27+
.react-select__control:hover {
28+
border-color: var(--border-color-dark) !important;
29+
background-color: var(--bg-tertiary) !important;
30+
}
31+
32+
.react-select__control--is-focused {
33+
border-color: var(--color-primary) !important;
34+
box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.1) !important;
35+
}
36+
37+
.react-select__menu {
38+
background-color: var(--bg-primary) !important;
39+
border: 1px solid var(--border-color) !important;
40+
border-radius: 6px !important;
41+
box-shadow:
42+
0 4px 6px -1px rgba(0, 0, 0, 0.1),
43+
0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
44+
margin-top: 4px !important;
45+
z-index: 100 !important;
46+
}
47+
48+
.react-select__option {
49+
background-color: var(--bg-primary) !important;
50+
color: var(--text-primary) !important;
51+
cursor: pointer !important;
52+
padding: 8px 12px !important;
53+
font-size: 14px !important;
54+
transition: all 200ms ease !important;
55+
}
56+
57+
.react-select__option:hover {
58+
background-color: var(--bg-tertiary) !important;
59+
}
60+
61+
.react-select__option--is-selected {
62+
background-color: var(--color-primary) !important;
63+
color: white !important;
64+
}
65+
66+
.react-select__option--is-focused {
67+
background-color: var(--bg-tertiary) !important;
68+
}
69+
70+
.react-select__single-value {
71+
color: var(--text-primary) !important;
72+
font-size: 14px !important;
73+
}
74+
75+
.react-select__indicator-separator {
76+
background-color: var(--border-color) !important;
77+
}
78+
79+
.react-select__dropdown-indicator {
80+
color: var(--text-secondary) !important;
81+
transition: transform 200ms ease !important;
82+
}
83+
84+
.react-select__dropdown-indicator:hover {
85+
color: var(--text-primary) !important;
86+
}
87+
88+
.react-select__control--menu-is-open .react-select__dropdown-indicator {
89+
transform: rotate(180deg) !important;
90+
}
91+
92+
.react-select__placeholder {
93+
color: var(--text-secondary) !important;
94+
font-size: 14px !important;
95+
}
96+
97+
.react-select__multi-value {
98+
background-color: var(--bg-tertiary) !important;
99+
border-radius: 4px !important;
100+
}
101+
102+
.react-select__multi-value__label {
103+
color: var(--text-primary) !important;
104+
font-size: 14px !important;
105+
padding: 2px 6px !important;
106+
}
107+
108+
.react-select__multi-value__remove {
109+
color: var(--text-secondary) !important;
110+
cursor: pointer !important;
111+
padding: 0 4px !important;
112+
transition: all 200ms ease !important;
113+
}
114+
115+
.react-select__multi-value__remove:hover {
116+
background-color: var(--border-color) !important;
117+
color: var(--text-primary) !important;
118+
}
119+
120+
.react-select__clear-indicator {
121+
color: var(--text-secondary) !important;
122+
cursor: pointer !important;
123+
padding: 0 8px !important;
124+
transition: all 200ms ease !important;
125+
}
126+
127+
.react-select__clear-indicator:hover {
128+
color: var(--text-primary) !important;
129+
}

0 commit comments

Comments
 (0)