Skip to content
This repository has been archived by the owner on Jan 19, 2025. It is now read-only.

Commit

Permalink
Fix search input box
Browse files Browse the repository at this point in the history
  • Loading branch information
chicio committed Dec 30, 2024
1 parent 566a3ab commit f607277
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/design-system/molecules/search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -118,24 +118,25 @@ const SearchBoxInput = styled.input<TransientProps<StartSearchProps>>`
border-radius: 50px;
box-sizing: border-box;
font-size: ${(props) => props.theme.fontSizes[3]};
color: ${(props) => props.theme.light.textAbovePrimaryColor};
border: 2px solid ${(props) => props.theme.light.textAbovePrimaryColor};
outline: none;
transition: 0.5s;
color: transparent;
${mediaQuery.dark} {
color: ${(props) => props.theme.dark.textAbovePrimaryColor};
border: 2px solid ${(props) => props.theme.dark.textAbovePrimaryColor};
}
${(props) =>
props.$startSearch &&
css`
color: ${(props) => props.theme.light.textAbovePrimaryColor};
width: 200px;
background: ${(props) => props.theme.light.generalBackground};
${borderRadius};
${mediaQuery.dark} {
color: ${(props) => props.theme.dark.textAbovePrimaryColor};
background: ${(props) => props.theme.dark.generalBackground};
}
`}
Expand Down

0 comments on commit f607277

Please sign in to comment.