Skip to content

Commit 4c3b588

Browse files
committed
fix(ui5-select): correct dropdown button height
1 parent 00afa74 commit 4c3b588

4 files changed

Lines changed: 13 additions & 6 deletions

File tree

packages/main/src/themes/Select.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
cursor: pointer;
2626
overflow: hidden;
2727
border-radius: var(--_ui5_input_border_radius);
28+
background: var(--_ui5_select_bottom_border_gradient);
2829
}
2930

3031
.ui5-select-label-root {

packages/main/src/themes/base/Select-parameters.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
--_ui5_select_label_color: var(--sapField_TextColor);
44
--_ui5_select_icon_width: 2.25rem;
55
--_ui5_select_icon_wrapper_height: 100%;
6+
--_ui5_select_bottom_border_gradient: none;
7+
--_ui5_select_icon_wrapper_state_height: calc(100% - 0.125rem);
68
}
79

810
@container style(--ui5_content_density: compact) {

packages/main/src/themes/sap_horizon/Select-parameters.css

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
:host {
44
--_ui5_select_hover_icon_left_border: none;
5-
--_ui5_select_icon_wrapper_height: calc(100% - 0.0625rem);
6-
--_ui5_select_icon_wrapper_state_height: calc(100% - 0.125rem);
7-
}
5+
--_ui5_select_icon_wrapper_height: 100%;
6+
--_ui5_select_icon_wrapper_state_height: 100%;
7+
--_ui5_input_icon_hover_bg: transparent;
8+
--_ui5_select_bottom_border_gradient: linear-gradient(var(--sapField_BorderColor), var(--sapField_BorderColor)) bottom / 100% var(--sapField_BorderWidth) no-repeat;
9+
}

packages/main/src/themes/sap_horizon_dark/Select-parameters.css

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
:host {
44
--_ui5_select_hover_icon_left_border: none;
5-
--_ui5_select_icon_wrapper_height: calc(100% - 0.0625rem);
6-
--_ui5_select_icon_wrapper_state_height: calc(100% - 0.125rem);
7-
}
5+
--_ui5_select_icon_wrapper_height: 100%;
6+
--_ui5_select_icon_wrapper_state_height: 100%;
7+
--_ui5_input_icon_hover_bg: transparent;
8+
--_ui5_select_bottom_border_gradient: linear-gradient(var(--sapField_BorderColor), var(--sapField_BorderColor)) bottom / 100% var(--sapField_BorderWidth) no-repeat;
9+
}

0 commit comments

Comments
 (0)