fix(search): Fix SearchBar styles & update StoryBook stories for custom styles for notchedOutline class

Signed-off-by: Carlos Esteban Lopez <lcarlosesteb@vmware.com>
This commit is contained in:
Carlos Esteban Lopez
2023-05-17 19:28:55 -05:00
parent 6c0867be8d
commit 2f660eb573
5 changed files with 23 additions and 3 deletions
@@ -92,7 +92,7 @@ const useStyles = makeStyles({
borderRadius: '50px',
margin: 'auto',
},
notchedOutline: {
searchBarOutline: {
borderStyle: 'none',
},
});
@@ -102,7 +102,7 @@ export const CustomStyles = () => {
return (
<Paper className={classes.search}>
<SearchBar
InputProps={{ classes: { notchedOutline: classes.notchedOutline } }}
InputProps={{ classes: { notchedOutline: classes.searchBarOutline } }}
/>
</Paper>
);
@@ -178,6 +178,7 @@ export const SearchBarBase: ForwardRefExoticComponent<SearchBarBaseProps> =
fullWidth={fullWidth}
onChange={handleChange}
onKeyDown={handleKeyDown}
style={{ margin: 0 }}
{...rest}
/>
</TrackSearch>