Skip to content

Commit

Permalink
fix(select): vertically center arrow (#178)
Browse files Browse the repository at this point in the history
* fix: center select arrow

Signed-off-by: Tianchu Zhao <[email protected]>

* add comment

Signed-off-by: Anton Gilgur <[email protected]>

---------

Signed-off-by: Tianchu Zhao <[email protected]>
Signed-off-by: Anton Gilgur <[email protected]>
Co-authored-by: Anton Gilgur <[email protected]>
  • Loading branch information
tczhao and agilgur5 authored Jun 11, 2024
1 parent ccb4ced commit 00a8b57
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/select/select.scss
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,10 @@
}

&__value-arrow {
position: absolute;
top: 8px;
// right most, vertically centered
top: 50%;
right: 0;
transform: translateY(-50%);
}

&__options {
Expand Down

0 comments on commit 00a8b57

Please sign in to comment.