From 00a8b573b86f90e09fdf455b20fd6056a619a5e2 Mon Sep 17 00:00:00 2001 From: Tianchu Zhao Date: Tue, 11 Jun 2024 11:32:56 +1000 Subject: [PATCH 1/2] fix(select): vertically center arrow (#178) * fix: center select arrow Signed-off-by: Tianchu Zhao * add comment Signed-off-by: Anton Gilgur --------- Signed-off-by: Tianchu Zhao Signed-off-by: Anton Gilgur Co-authored-by: Anton Gilgur <4970083+agilgur5@users.noreply.github.com> --- src/components/select/select.scss | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/select/select.scss b/src/components/select/select.scss index f60b9d20..249adb6d 100644 --- a/src/components/select/select.scss +++ b/src/components/select/select.scss @@ -27,9 +27,10 @@ } &__value-arrow { - position: absolute; - top: 8px; + // right most, vertically centered + top: 50%; right: 0; + transform: translateY(-50%); } &__options { From 6de6bfedc0ec0625122dd5162371fc1932f8d428 Mon Sep 17 00:00:00 2001 From: Tianchu Zhao Date: Wed, 12 Jun 2024 03:27:47 +1000 Subject: [PATCH 2/2] fix(select): right align arrow (#563) Signed-off-by: Tianchu Zhao --- src/components/select/select.scss | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/select/select.scss b/src/components/select/select.scss index 249adb6d..344d059c 100644 --- a/src/components/select/select.scss +++ b/src/components/select/select.scss @@ -28,6 +28,7 @@ &__value-arrow { // right most, vertically centered + position: absolute; top: 50%; right: 0; transform: translateY(-50%);