·
146 commits
to master
since this release
Minor Changes
-
theme: Expose web fonts
href
on runtime tokens (#1685)Extend the
webFonts
runtime token to include thehref
property containing the web font URL.
This enables custom handling of web fonts beyond injecting the pre-constructedlink
tag(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
brandAccent
tone (#1693)The stars in the
Rating
component now use thebrandAccent
tone rather than therating
token from the theme.As a result the
rating
variable 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
tone
support (#1693)For usages where the
Rating
component should not be accentuated, thetone
prop can be used to applyneutral
tone.EXAMPLE USAGE:
<Rating tone="neutral" />