Skip to content

Commit 55db4a1

Browse files
committed
Add styling to up/down buttons in react-datepicker years dropdown
1 parent ae8d344 commit 55db4a1

1 file changed

Lines changed: 30 additions & 2 deletions

File tree

src/styles/components/_datepicker-custom.scss

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
* the License.
1919
*
2020
*/
21-
21+
@use "sass:color";
2222

2323
.datepicker-custom {
2424
z-index: 10000 !important;
@@ -30,4 +30,32 @@
3030
&-input {
3131
height: 25px !important;
3232
}
33-
}
33+
}
34+
35+
.react-datepicker__navigation--years {
36+
&::before {
37+
border-color: #ccc;
38+
border-style: solid;
39+
border-width: 3px 3px 0 0;
40+
content: '';
41+
display: block;
42+
height: 9px;
43+
left: 11px;
44+
position: absolute;
45+
width: 9px;
46+
}
47+
48+
&-upcoming::before {
49+
top: 17px;
50+
transform: rotate(315deg);
51+
}
52+
53+
&-previous::before {
54+
top: 6px;
55+
transform: rotate(135deg);
56+
}
57+
58+
&:hover::before {
59+
border-color: color.adjust(#ccc, $lightness: -15%);
60+
}
61+
}

0 commit comments

Comments
 (0)