Skip to content

Commit

Permalink
Add styling to up/down buttons in react-datepicker years dropdown
Browse files Browse the repository at this point in the history
  • Loading branch information
snoesberger committed Dec 13, 2024
1 parent ae8d344 commit 55db4a1
Showing 1 changed file with 30 additions and 2 deletions.
32 changes: 30 additions & 2 deletions src/styles/components/_datepicker-custom.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* the License.
*
*/

@use "sass:color";

.datepicker-custom {
z-index: 10000 !important;
Expand All @@ -30,4 +30,32 @@
&-input {
height: 25px !important;
}
}
}

.react-datepicker__navigation--years {
&::before {
border-color: #ccc;
border-style: solid;
border-width: 3px 3px 0 0;
content: '';
display: block;
height: 9px;
left: 11px;
position: absolute;
width: 9px;
}

&-upcoming::before {
top: 17px;
transform: rotate(315deg);
}

&-previous::before {
top: 6px;
transform: rotate(135deg);
}

&:hover::before {
border-color: color.adjust(#ccc, $lightness: -15%);
}
}

0 comments on commit 55db4a1

Please sign in to comment.