Skip to content

Commit

Permalink
Merge pull request #512 from brightlayer-ui/bug/x
Browse files Browse the repository at this point in the history
Remove "X" from the search field
  • Loading branch information
huayunh authored Jan 17, 2022
2 parents 180ac0a + af6bc9f commit 697d37d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app/pages/SearchBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -255,11 +255,13 @@ export const SearchBar: React.FC<SearchbarProps> = (props) => {
field.remove();
}
}}
inputProps={{ style: { height: theme.spacing(7) } }}
/>
)}
<IconButton
onClick={(): void => {
dismissSearchBar();
setInputString('');
}}
edge={'end'}
>
Expand Down
7 changes: 7 additions & 0 deletions src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,13 @@ q:after {
padding: 0;
}

input[type='search']::-webkit-search-decoration,
input[type='search']::-webkit-search-cancel-button,
input[type='search']::-webkit-search-results-button,
input[type='search']::-webkit-search-results-decoration {
display: none;
}

blockquote > p:last-child {
margin-bottom: 0;
}
Expand Down

0 comments on commit 697d37d

Please sign in to comment.