braid-design-system@33.4.0
·
357 commits
to master
since this release
Minor Changes
-
theme: Expose web fonts
hrefon runtime tokens (#1685)Extend the
webFontsruntime token to include thehrefproperty containing the web font URL.
This enables custom handling of web fonts beyond injecting the pre-constructedlinktag(s).EXAMPLE USAGE:
import seekJobs from 'braid-design-system/themes/seekJobs'; const webFontHrefs = seekJobs.webFonts.map(({ href }) => href); // => [ "https://www.seek.com.au/static/shared-web/seeksans.css" ]
-
Rating: Adopt
brandAccenttone (#1693)The stars in the
Ratingcomponent now use thebrandAccenttone rather than theratingtoken from the theme.As a result the
ratingvariable has been deprecated and will be removed in a future release.MIGRATION GUIDE:
// styles.css.ts import { vars } from 'braid-design-system/css'; export const myStyle = style({ - color: vars.foreground.rating, + color: vars.foreground.brandAccent, }); -
Rating: Add
tonesupport (#1693)For usages where the
Ratingcomponent should not be accentuated, thetoneprop can be used to applyneutraltone.EXAMPLE USAGE:
<Rating tone="neutral" />