Merged in fix/SW-2478-search-label-inverted-colors (pull request #1850)

fix: colors of the search field on <JumpTo/> had inverted behaviour

* fix: colors of the search field on <JumpTo/> had inverted behaviour


Approved-by: Linus Flood
This commit is contained in:
Joakim Jäderberg
2025-04-24 06:52:00 +00:00
parent d077184e5e
commit d66a3aabdf

View File

@@ -112,7 +112,7 @@ export function Search({
<label
{...getLabelProps({ htmlFor: SEARCH_TERM_NAME })}
className={labelVariants({
color: !withSearchButton || isOpen ? "red" : "default",
color: withSearchButton && isOpen ? "default" : "red",
})}
>
<Typography variant="Body/Supporting text (caption)/smBold">