Skip to content

Commit

Permalink
fix: #4561 remove triangle-arrow- mixin
Browse files Browse the repository at this point in the history
  • Loading branch information
yuki0410-dev committed Mar 17, 2024
1 parent 8ef2eef commit bfa9ee5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 15 deletions.
10 changes: 8 additions & 2 deletions src/stylesheets/datepicker.scss
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,21 @@
// Eliminating extra space at the bottom of the container
line-height: 0;

.react-datepicker__triangle {
stroke: $datepicker__border-color;
}

&[data-placement^="bottom"] {
.react-datepicker__triangle {
@extend %triangle-arrow-up;
fill: $datepicker__background-color;
color: $datepicker__background-color;
}
}

&[data-placement^="top"] {
.react-datepicker__triangle {
@extend %triangle-arrow-down;
fill: #fff;
color: #fff;
}
}
}
Expand Down
12 changes: 0 additions & 12 deletions src/stylesheets/mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,3 @@
cursor: default;
}
}

%triangle-arrow-up {
fill: $datepicker__background-color;
color: $datepicker__background-color;
stroke: $datepicker__border-color;
}

%triangle-arrow-down {
fill: #fff;
color: #fff;
stroke: $datepicker__border-color;
}
1 change: 0 additions & 1 deletion src/stylesheets/variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,3 @@ $datepicker__font-family: "Helvetica Neue", helvetica, arial, sans-serif !defaul
$datepicker__item-size: 1.7rem !default;
$datepicker__margin: 0.4rem !default;
$datepicker__navigation-button-size: 32px !default;
$datepicker__triangle-size: 8px !default;

0 comments on commit bfa9ee5

Please sign in to comment.