-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #388 from NYPL/main
Locations filter vqa/qa 2
- Loading branch information
Showing
20 changed files
with
191 additions
and
139 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import { Box, TagSet, Text } from "@nypl/design-system-react-components" | ||
|
||
const ActiveFilters = ({ filterName, onClick, tagSetData }) => { | ||
return ( | ||
<Box display="flex" flexDirection={{ base: "column", md: "row" }} mb="l"> | ||
<Text | ||
display="block" | ||
fontSize="desktop.body.body2" | ||
fontWeight="bold" | ||
mr={{ base: "0", md: "s" }} | ||
mb={{ base: "xxs", md: 0 }} | ||
lineHeight="--nypl-lineHeights-taller" | ||
> | ||
Active filters | ||
</Text> | ||
<TagSet | ||
id={`${filterName}-applied-filters`} | ||
isDismissible | ||
type="filter" | ||
onClick={onClick} | ||
tagSetData={tagSetData} | ||
/> | ||
</Box> | ||
) | ||
} | ||
|
||
export default ActiveFilters |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.