Skip to content

Commit

Permalink
fix(Select): fix wrong clear styles
Browse files Browse the repository at this point in the history
  • Loading branch information
maeshchenko committed Dec 25, 2023
1 parent 3dcf03d commit 48f9619
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/components/Select/components/SelectControl/SelectControl.scss
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,13 @@ $blockButton: '.#{variables.$ns-new}select-control__button';

&_view_clear {
border-color: transparent;

&::before {
border-color: transparent;
}
&::after {
border-color: transparent;
}
}

&_size_s {
Expand Down Expand Up @@ -178,12 +185,12 @@ $blockButton: '.#{variables.$ns-new}select-control__button';
}
}

&:not(&_error):not(&_disabled):hover::before {
&:not(&_error):not(&_disabled):not(&_view_clear):hover::before {
border-color: var(--g-color-line-generic-hover);
}

&_open:not(&_error)::before,
&:not(&_error):focus-visible::before {
&_open:not(&_error):not(&_view_clear)::before,
&:not(&_error):not(&_view_clear):focus-visible::before {
border-color: var(--g-color-line-generic-active);
}
}
Expand Down

0 comments on commit 48f9619

Please sign in to comment.