-
Notifications
You must be signed in to change notification settings - Fork 278
feat(ui5-search): update visual hover and active state of shell search scope #13256
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
69219b8
8e1b175
e6ef6eb
939b4cc
da9dc99
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -87,8 +87,15 @@ | |
| --_ui5_select_label_color: var(--sapShell_TextColor); | ||
| } | ||
|
|
||
| [ui5-select]:hover { | ||
| box-shadow: var(--sapField_Hover_Shadow); | ||
| [ui5-select]:hover, | ||
| .ui5-search-field-select::part(icon-wrapper):hover { | ||
| box-shadow: var(--_ui5-search_input_scope_hover_shadow); | ||
| } | ||
|
|
||
| [ui5-select]:active, | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Did you check if that styles are applied?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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-search-field-select:active::part(icon-wrapper) { | ||
| box-shadow: var(--_ui5-search_input_scope_active_shadow); | ||
| background: var(--sapShell_Active_Background); | ||
| } | ||
|
|
||
| [ui5-select]::part(icon) { | ||
|
|
@@ -283,18 +290,6 @@ | |
| height: 100%; | ||
| } | ||
|
|
||
| .ui5-search-field-select[focused]::part(icon-wrapper) { | ||
| box-shadow: var(--sapField_Hover_Shadow); | ||
| } | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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). |
||
|
|
||
| :host(:not([collapsed]):hover):has([ui5-select]:hover) { | ||
| background: var(--_ui5-search-wrapper-background); | ||
| } | ||
|
|
||
| :host(:not([collapsed])):has([ui5-select][focused]) { | ||
| background: var(--_ui5-search-wrapper-background); | ||
| } | ||
|
|
||
| .ui5-search-field-inner-input::selection { | ||
| background: var(--sapSelectedColor); | ||
| color: var(--sapContent_ContrastTextColor); | ||
|
|
||
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.