fix(search): Fix accidental HomePageSearchBar input classes override on spread operator

Signed-off-by: Carlos Esteban Lopez <lcarlosesteb@vmware.com>
This commit is contained in:
Carlos Esteban Lopez
2023-05-19 10:59:49 -05:00
parent ba261f9dcd
commit 6b281bda66
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -1,6 +1,7 @@
---
'@backstage/plugin-search-react': patch
'@backstage/plugin-search': patch
'@backstage/plugin-techdocs': patch
---
Fix SearchBar styles & update StoryBook stories for custom styles for `notchedOutline` class.
@@ -66,12 +66,12 @@ export const HomePageSearchBar = (props: HomePageSearchBarProps) => {
onSubmit={handleSubmit}
onChange={handleChange}
InputProps={{
...props.InputProps,
classes: {
root: classes.searchBarRoot,
notchedOutline: classes.searchBarOutline,
...props.InputProps?.classes,
},
...props.InputProps,
}}
{...props}
/>