Skip to content

feat(ui5-search): update visual hover and active state of shell search scope#13256

Open
Vonahz wants to merge 5 commits intomainfrom
search_activehover
Open

feat(ui5-search): update visual hover and active state of shell search scope#13256
Vonahz wants to merge 5 commits intomainfrom
search_activehover

Conversation

@Vonahz
Copy link
Contributor

@Vonahz Vonahz commented Mar 11, 2026

JIRA: BGSOFUIRILA-4275

@Vonahz Vonahz requested a review from niyap March 11, 2026 14:19
@ui5-webcomponents-bot
Copy link
Collaborator

ui5-webcomponents-bot commented Mar 11, 2026

@ui5-webcomponents-bot ui5-webcomponents-bot temporarily deployed to preview March 11, 2026 14:27 Inactive
Copy link
Contributor

@niyap niyap left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. When select is active, it is expected to have a border, which is currently no presented
  2. Please, ask about the expected behaviour when search is active and hovered. Currently, it looks really strange. If the picker is open and the mouse cursor is somewhere within the picker or the search field, it receives hover styles (grey border, previously is was blue). Also, when it is open, please hover over its button -> its get bigger and color is changed

box-shadow: var(--_ui5-search_input_scope_hover_shadow);
}

[ui5-select]:active,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you check if that styles are applied?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. They are applied on mousedown as :active state is applied then.

[ui5-select]:hover {
box-shadow: var(--sapField_Hover_Shadow);
[ui5-select]:hover,
.ui5-search-field-select::part(icon-wrapper):hover {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why we change the box-shadow? Could you please tell me about the new value 0 0 0 var(--sapField_BorderWidth) var(--sapButton_Lite_Hover_BorderColor); -> where it comes from as I did not manage to find it in the specification

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The solution with box-shadow was introduced before this change as if using border visual design cannot be achieved because the select and the dropdown icon (arrow down) border cannot stack on top of each other. Dropdown icon is inside the select and if use border - the border looks more thick because of parent-child stacking. This code achieved the border from visual design with box-shadow.

Image


.ui5-search-field-select[focused]::part(icon-wrapper) {
box-shadow: var(--sapField_Hover_Shadow);
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it expected to not have styles applied for the search button icon when you hover over it?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This styles are not for the search button icon as it does not have ::part(icon-wrapper).

@ui5-webcomponents-bot ui5-webcomponents-bot temporarily deployed to preview March 12, 2026 12:56 Inactive
@ui5-webcomponents-bot ui5-webcomponents-bot temporarily deployed to preview March 12, 2026 13:22 Inactive
@ui5-webcomponents-bot ui5-webcomponents-bot temporarily deployed to preview March 12, 2026 15:04 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.

3 participants