Skip to content

Commit

Permalink
style Clear Filters button
Browse files Browse the repository at this point in the history
  • Loading branch information
ccatherinetan committed Dec 23, 2024
1 parent 4c831ad commit 4804804
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 3 additions & 1 deletion app/view-plants/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,9 @@ export default function Page() {
placeholder="Growing Season"
/>

<button onClick={clearFilters}>Clear Filters</button>
<SelectButton $secondaryColor={COLORS.shrub} onClick={clearFilters}>
Clear Filters
</SelectButton>
</FilterContainer>
</TopRowContainer>
<Box $h="24px">
Expand Down
7 changes: 3 additions & 4 deletions app/view-plants/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export const FilterContainer = styled.div`
flex-direction: row;
gap: 8px;
margin-bottom: 20px;
align-items: center;
`;

export const TopRowContainer = styled.div`
Expand Down Expand Up @@ -67,12 +68,10 @@ export const PlantGridContainer = styled.div`

export const SelectButton = styled(SmallRoundedButton)`
font-size: 0.75rem;
font-style: normal;
font-weight: 400;
line-height: normal;
width: 60px;
min-width: 60px;
height: 25px;
padding: 0;
padding: 0 4px;
`;

export const ViewSelection = styled.div`
Expand Down
1 change: 1 addition & 0 deletions components/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ interface SmallRoundedButtonProps {
}

export const SmallRoundedButton = styled.button<SmallRoundedButtonProps>`
font-family: inherit;
padding: 10px 20px;
border-radius: 15px;
box-shadow: 1px 1px 1px 0px rgba(0, 0, 0, 0.05);
Expand Down

0 comments on commit 4804804

Please sign in to comment.