braid-design-system@31.17.2
·
840 commits
to master
since this release
Patch Changes
-
Update
@vanilla-extract/cssdependency (#1158)This fixes a type error that was occurring with typescript versions >=4.5.0
-
Heading: Nested icons inherit text colour (#1153)
When using icons inside of a
Heading, the defaulttonewas alwaysneutral, rather than inheriting the colour of the nearest component.For example, when an icon was used inside of a
TextLinkwithin aHeading:<Heading level="1"> Title with{' '} <TextLink> link <IconArrow /> </TextLink> </Heading> // => Previously, IconArrow was the heading text colour // `neutral`, now inherits the `link` colour.
or equally, when an icon was used inside of a
Secondarycomponent within aHeading:<Heading level="1"> Title with{' '} <Secondary> secondary <IconArrow /> </Secondary> </Heading> // => Previously, IconArrow was the heading text colour // `neutral`, now inherits the `secondary` colour.