Skip to content

fix(ui5-select): correct dropdown button height#13408

Open
NakataCode wants to merge 1 commit intomainfrom
select-dropdown-button-height
Open

fix(ui5-select): correct dropdown button height#13408
NakataCode wants to merge 1 commit intomainfrom
select-dropdown-button-height

Conversation

@NakataCode
Copy link
Copy Markdown
Contributor

The dropdown button height was set to calc(100% - 0.0625rem) in sap_horizon and sap_horizon_dark themes, causing a 1px vertical misalignment with the input field. According to the Input with Button (Horizon) spec, the button height should match the field height exactly (2.25rem cozy, 1.625rem compact). Set --_ui5_select_icon_wrapper_height and --_ui5_select_icon_wrapper_state_height to 100% to align with the specification.

Additionally, the field's bottom border (inset box-shadow) was covered by the dropdown button's hover background. Per spec, the field's underline must appear on top of the button in all states. Fixed by drawing the bottom border as a background-image gradient on the select root element, spanning the full width including under the button, and setting the button hover background to transparent so the gradient remains visible.

Fixes: #13306

@ui5-webcomponents-bot
Copy link
Copy Markdown
Collaborator

@ui5-webcomponents-bot ui5-webcomponents-bot temporarily deployed to preview April 17, 2026 12:48 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Select][Web Components][2.20.1]: Incorrect visual implementation of the button leads to vertical misalignment with the input field

2 participants