braid-design-system@34.8.0
·
6 commits
to master
since this release
Minor Changes
-
IconRenderer: Add support for
size="fill"(#2132)EXAMPLE USAGE:
Provides the ability for custom icons to be sized to their container in the same way as Braid icons.<Box style={{ height: 60, width: 60 }}> <IconRenderer size="fill"> {({ className }) => ( <svg viewBox="0 0 24 24" className={className} fill="currentcolor" aria-hidden > ... </svg> )} </IconRenderer> </Box>
-
Accordion: Deprecate
spaceprop and update spacing defaults (#2120)The
spaceprop is now deprecated and will be removed in a future release. Spacing between items is now automatically derived from thesizeprop.The following default spacing value has been updated:
dividerssizePrevious default New default falsestandardlargemediumMIGRATION GUIDE:
If the updated default causes an undesired visual change, you can preserve the previous spacing by explicitly setting the
spaceprop while migrating:<Accordion + space="large" dividers={false} size="standard" >