Skip to content

Commit afec3fe

Browse files
authored
fix(ui5-shellbar): fix search field visual in IE (#1643)
FIXES: #1640
1 parent 14a48d1 commit afec3fe

File tree

2 files changed

+18
-4
lines changed

2 files changed

+18
-4
lines changed

packages/fiori/src/themes/ShellBar.css

+17-3
Original file line numberDiff line numberDiff line change
@@ -373,14 +373,28 @@ ui5-icon[data-count]::before {
373373
height: 100%;
374374
}
375375

376-
::slotted(ui5-input:hover) {
376+
::slotted(ui5-input[focused]) {
377+
outline: 1px dotted var(--sapContent_ContrastFocusColor);
378+
}
379+
380+
/**
381+
* IE styles
382+
*/
383+
ui5-input[value-state]:not([readonly]) {
384+
background: var(--sapShellColor);
385+
border: 1px solid var(--sapShell_InteractiveBorderColor);
386+
}
387+
388+
ui5-input[value-state]:not([readonly]):hover,
389+
ui5-input:not([value-state]):not([readonly]):hover {
377390
background: var(--sapShell_Hover_Background);
391+
border: 1px solid var(--sapShell_InteractiveBorderColor);
378392
}
379393

380-
::slotted(ui5-input[focused]) {
394+
ui5-input[value-state]:not([value-stat="None"])[focused] {
381395
outline: 1px dotted var(--sapContent_ContrastFocusColor);
382396
}
383-
397+
/* IE styles end */
384398

385399
.ui5-shellbar-copilot-wrapper {
386400
position: relative;

packages/fiori/test/pages/ShellBar.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@
9696
<ui5-shellbar-item icon="action-settings" text="Settings"></ui5-shellbar-item>
9797
<ui5-shellbar-item icon="sys-help" text="Help"></ui5-shellbar-item>
9898

99-
<ui5-input slot="searchField"></ui5-input>
99+
<ui5-input slot="searchField" value-state="Error"></ui5-input>
100100

101101
</ui5-shellbar>
102102

0 commit comments

Comments
 (0)