Skip to content

Commit 7e5751b

Browse files
committed
fix: dropdown consistency style
1 parent 97906ac commit 7e5751b

File tree

2 files changed

+32
-30
lines changed

2 files changed

+32
-30
lines changed

src/shared/components/SortingSelectBar/style.scss

Lines changed: 19 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ $down-arrow-size: $base-unit;
5252
// 'Sort by' dropdown
5353
.Select {
5454
@include roboto-regular;
55+
56+
border-color: #b3b3b3 !important;
5557
}
5658

5759
.is-focused {
@@ -88,8 +90,9 @@ $down-arrow-size: $base-unit;
8890
overflow: visible;
8991
}
9092

91-
.Select.is-focused:not(.is-open) > .Select-control {
92-
border-color: #137d60 !important;
93+
.Select.is-focused > .Select-control {
94+
outline: none;
95+
box-shadow: none;
9396
}
9497

9598
.Select-value-label {
@@ -120,51 +123,41 @@ $down-arrow-size: $base-unit;
120123
.Select-menu-outer {
121124
width: 100%;
122125
color: $tc-gray-90;
126+
border-bottom-right-radius: 4px;
127+
border-bottom-left-radius: 4px;
123128
font-weight: 400;
124129
font-size: 12px;
125130
background-color: $tc-white;
126131
box-sizing: border-box;
127-
margin-top: 2px;
128-
padding: 4px 0;
132+
border: 1px solid #ccc;
133+
max-height: 200px;
129134
position: absolute;
135+
left: 0;
136+
height: fit-content;
130137
top: 100%;
131-
right: 0;
132-
z-index: 1000;
133-
-webkit-overflow-scrolling: touch;
134-
border: none !important;
135138
}
136139

137140
.Select-menu {
138-
max-height: none;
139141
overflow-y: visible;
140-
height: 22px;
141142
font-size: 14px;
142143
}
143144

144145
.Select-option {
145146
box-sizing: border-box;
146-
color: rgba(51, 51, 51, 0.8);
147+
color: #2a2a2b;
147148
cursor: pointer;
148149
display: block;
149-
padding: 6px 16px;
150-
border-left: 1px solid #aaa;
151-
border-right: 1px solid #aaa;
152-
}
153-
154-
.Select-option:last-child {
155-
border-bottom-right-radius: 5px !important;
156-
border-bottom-left-radius: 5px !important;
157-
border-bottom: 1px solid #aaa;
150+
padding: 8px 15px;
158151
}
159152

160-
.Select-option:first-child {
161-
border-top: 1px solid #aaa;
162-
border-top-left-radius: $base-unit;
163-
border-top-right-radius: $base-unit;
153+
.Select-option:hover {
154+
color: #fff !important;
155+
font-weight: 400 !important;
156+
background-color: #229173 !important;
164157
}
165158

166-
.Select-option:hover {
167-
color: $tc-black;
159+
.Select.is-focused:not(.is-open) > .Select-control {
160+
border-color: #b3b3b3 !important;
168161
}
169162

170163
.Select-option.is-selected {

src/shared/components/challenge-listing/Filters/FiltersPanel/style.scss

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -587,16 +587,25 @@ hr.hr {
587587
.Select.is-focused > .Select-control {
588588
outline: none;
589589
box-shadow: none;
590-
border-color: #151516 !important;
591590
}
592591

593592
.Select-menu-outer {
594-
margin-top: 1px;
595593
font-size: 14px;
596594

595+
.Select-option {
596+
color: #2a2a2b !important;
597+
padding: 8px 15px;
598+
}
599+
597600
.Select-option.is-selected {
598-
background-color: #137d60 !important;
599-
color: $tc-white !important;
601+
font-weight: 700;
602+
color: #2a2a2b !important;
603+
background-color: #fff !important;
604+
}
605+
606+
.Select-option:hover {
607+
background-color: #229173 !important;
608+
color: #fff !important;
600609
}
601610
}
602611
}

0 commit comments

Comments
 (0)