|
85 | 85 | background-color: var(--_ui5-search-elements-background); |
86 | 86 | height: var(--_ui5-search-select-height); |
87 | 87 | --_ui5_select_label_color: var(--sapShell_TextColor); |
| 88 | + /* Remove Select's default focus outline without affecting dropdown items */ |
| 89 | + --_ui5_input_focus_outline_color: transparent; |
88 | 90 | } |
89 | 91 |
|
90 | | -[ui5-select]:hover { |
91 | | - box-shadow: var(--sapField_Hover_Shadow); |
| 92 | +[ui5-select]:hover:not(:active):not(:focus-within) { |
| 93 | + box-shadow: var(--_ui5-search_input_scope_hover_shadow); |
| 94 | +} |
| 95 | + |
| 96 | +[ui5-select]:not(:active):not(:focus-within)::part(icon-wrapper):hover { |
| 97 | + box-shadow: var(--_ui5-search_input_scope_hover_shadow); |
| 98 | +} |
| 99 | + |
| 100 | +/* Active state for select - only shadow, no background */ |
| 101 | +[ui5-select]:active, |
| 102 | +[ui5-select]:focus-within { |
| 103 | + box-shadow: var(--_ui5-search_input_scope_active_shadow); |
| 104 | +} |
| 105 | + |
| 106 | +[ui5-select]:active::part(icon-wrapper), |
| 107 | +[ui5-select]:focus-within::part(icon-wrapper) { |
| 108 | + box-shadow: var(--_ui5-search_input_scope_active_shadow); |
| 109 | + background: var(--sapShell_Active_Background); |
| 110 | + color: var(--sapShell_Active_TextColor); |
92 | 111 | } |
93 | 112 |
|
94 | 113 | [ui5-select]::part(icon) { |
|
158 | 177 | padding-inline-start: 0.875rem; |
159 | 178 | } |
160 | 179 |
|
161 | | -[ui5-select]:hover, |
162 | 180 | .ui5-search-field-inner-input:hover { |
163 | 181 | background-color: var(--_ui5-search-elements-hover-background); |
164 | 182 | } |
165 | 183 |
|
166 | | -[ui5-select]:focus-within, |
167 | 184 | .ui5-search-field-inner-input:focus-within { |
168 | 185 | background-color: var(--_ui5-search-elements-active-background); |
169 | 186 | } |
|
273 | 290 | --_ui5_input_focus_border_radius: var(--_ui5_search_input_border_radius); |
274 | 291 | } |
275 | 292 |
|
276 | | -.ui5-search-field-select:hover, |
277 | | -.ui5-search-field-select[focused] { |
278 | | - background: var(--_ui5-search-wrapper-hover-background-color); |
279 | | -} |
280 | | - |
281 | 293 | .ui5-search-field-select::part(icon-wrapper) { |
282 | 294 | border-radius: var(--_ui5_search_input_border_radius); |
283 | 295 | height: 100%; |
284 | 296 | } |
285 | 297 |
|
286 | | -.ui5-search-field-select[focused]::part(icon-wrapper) { |
287 | | - box-shadow: var(--sapField_Hover_Shadow); |
288 | | -} |
289 | | - |
290 | | -:host(:not([collapsed]):hover):has([ui5-select]:hover) { |
291 | | - background: var(--_ui5-search-wrapper-background); |
292 | | -} |
293 | | - |
294 | | -:host(:not([collapsed])):has([ui5-select][focused]) { |
295 | | - background: var(--_ui5-search-wrapper-background); |
296 | | -} |
297 | | - |
298 | 298 | .ui5-search-field-inner-input::selection { |
299 | 299 | background: var(--sapSelectedColor); |
300 | 300 | color: var(--sapContent_ContrastTextColor); |
|
0 commit comments