Skip to content

Commit d512847

Browse files
Merge pull request #6169 from Hacker0x01/fix/dropdown-select-styling
fix: add base styles for month/year select dropdowns
2 parents 9e4795d + 9f736c2 commit d512847

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

src/stylesheets/datepicker.scss

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,24 @@
149149
margin: 0 15px;
150150
}
151151

152+
.react-datepicker__month-select,
153+
.react-datepicker__year-select,
154+
.react-datepicker__month-year-select {
155+
background-color: transparent;
156+
border: 1px solid $datepicker__border-color;
157+
border-radius: $datepicker__border-radius;
158+
color: inherit;
159+
cursor: pointer;
160+
font-family: inherit;
161+
font-size: inherit;
162+
margin-top: 5px;
163+
padding: 2px 5px;
164+
165+
&:focus-visible {
166+
outline: auto 1px;
167+
}
168+
}
169+
152170
.react-datepicker__current-month,
153171
.react-datepicker-time__header,
154172
.react-datepicker-year-header {

0 commit comments

Comments
 (0)