Skip to content

Commit

Permalink
fix: MET-182: add icon clear search in search bar of staking lifecycl…
Browse files Browse the repository at this point in the history
…e page
  • Loading branch information
Sotatek-TienDang committed Nov 16, 2023
1 parent 2c5bc1b commit 5a10c8d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/components/StakingLifeCycleSearch/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ const StakingLifeCycleSearch = () => {
<Box>
<SearchContainer mx={"auto"}>
<StyledInput
type="search"
placeholder={t("slc.typeStakeOrPool")}
onChange={(e) => {
setValue(e.target.value.trim());
Expand Down
5 changes: 5 additions & 0 deletions src/components/StakingLifeCycleSearch/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ export const StyledInput = styled("input")`
text-overflow: ellipsis;
background: ${({ theme }) => theme.palette.secondary[0]};
color: ${({ theme }) => theme.palette.secondary.light};
&::-webkit-search-cancel-button {
filter: ${({ theme }) => (theme.mode === "dark" ? "brightness(0) invert(0.8)" : "brightness(0) invert(0.4)")};
cursor: pointer;
}
`;

export const SubmitButton = styled(Button)`
Expand Down

0 comments on commit 5a10c8d

Please sign in to comment.