v2.1.3
·
2028 commits
to release
since this release
Adds
- Adds the
hasVisitedStyles
prop toLink
which is used to include or omit the visited state styles. Default value is true. - Adds the
useDSHeading
hook to render a default H2 heading or a custom heading element. - Adds the
sizeBasedOn
prop to theImage
component. - Adds the
isDarkBackgroundImage
prop to theHero
component.
Updates
- Removes
disabled
variant fromLink
theme file, as it isn't being used. - Updates the
font-weight
to"regular"
for thesubtitle1
andsubtitle2
text styles. - Updates the
"digitalCollectionsBlack"
variant of theLogo
component to use NYPL color design tokens. - Updates the following components to accept
JSX.Element
type values into their"title"
prop:List
,NewsletterSignup
, - Updates the following components to accept
JSX.Element
type values into their"headingText"
prop:AlphabetFilter
,AudioPlayer
,ComponentWrapper
,SearchBar
,VideoPlayer
- Updates the
Notification
component to acceptJSX.Element
type values into its"notificationHeading"
prop. - Updates the
StructuredContent
component to acceptJSX.Element
type values into its"headingText"
and"calloutText"
props. - Updates the
FeaturedContent
component by adjusting the spacing in the"fullScreen"
variant to better align the component text content with the page text content. - Updates the
"campaign"
variant of theHero
component to improve the spacing around the component. - Updates the
Card
component so that it accepts theimageProps.isLazy
prop and passes it to its internalImage
component.
Fixes
- Adds z-index on hover to the
SearchBar
's select icon so it no longer disappears. - Adds z-index to the
DatePicker
's calendar container so that the helper text does not shift when the calendar opens.