Skip to content

Commit 238dd04

Browse files
authored
fix: Wrong color of the search icon (#4407)
* fix: search icon wrong color * fix: search icon color on hover and focus
1 parent 47cbbe7 commit 238dd04

File tree

3 files changed

+18
-2
lines changed

3 files changed

+18
-2
lines changed

src/shared/components/GenericList/SearchInput.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,10 @@ export function SearchInput({
109109
</Label>
110110
<Input
111111
id={`search-${entriesKind}`}
112+
className="search-input"
112113
accessibleName={`search-${entriesKind}`}
113114
type="Search"
114-
icon={<Icon className="bsl-has-color-status-4" name="search" />}
115+
icon={<Icon name="search" className="search-icon" />}
115116
ref={searchInputRef}
116117
value={searchQuery}
117118
onInput={(e) => handleQueryChange(e.target.value)}

src/shared/components/GenericList/SearchInput.scss

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,22 @@
33
align-items: center;
44
gap: 0.5rem;
55

6-
#search-input {
6+
.search-input {
77
margin: 0;
8+
9+
&:focus {
10+
.search-icon {
11+
&:hover {
12+
color: var(--sapIllus_HoverButtonColor);
13+
}
14+
}
15+
}
16+
17+
.search-icon {
18+
&:hover {
19+
box-shadow: var(--sapField_Hover_Shadow);
20+
}
21+
}
822
}
923
}
1024

src/styles/sapIllus-Fills.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
--sapIllus_BackgroundColor: #e7e9ea;
88
--sapIllus_ObjectFillColor: #fff;
99
--sapIllus_AccentColor: #ffba10;
10+
--sapIllus_HoverButtonColor: #0064d9;
1011
--sapIllus_NoColor: none;
1112
--sapIllus_PatternShadow: url(#sapIllus_PatternShadow);
1213
--sapIllus_PatternHighlight: url(#sapIllus_PatternHighlight);

0 commit comments

Comments
 (0)