v29.29.0
Minor Changes
-
Box: Support responsive
borderRadius(#910)Adds support for responsive values to
borderRadius.EXAMPLE USAGE:
<Box borderRadius={['none', 'standard']}>...</Box>
-
Button: Add support for
refandtabIndexprops (#905) -
Card: Add
componentsupport (#910)The HTML tag can be customised to ensure the underlying document semantics are meaningful. This can be done using the component prop and supports
div(default),article,aside,details,mainandsection.EXAMPLE USAGE:
<Card component="article">...</Card>
-
Badge: Add support for
ref,tabIndexandaria-describedbyprops (#905) -
Card: Add
tonesupport (#910)Specifying a
tonewill now add a keyline down the left hand side of the container. The supported tones arepromoteandformAccent.As a result, Cards are now position relative containers.
EXAMPLE USAGE:
<Card tone="formAccent">...</Card>
-
TextLink, ButtonLink: Add support for
refprop (#905) -
Card: Add
roundedandroundedAbovesupport (#910)Card corners can be rounded by providing the
roundedprop.Alternatively, rounding may be applied responsively using the
roundedAboveprop, and providing eithermobileortablet. This enables card edges to be softened on larger screens, but squared off if it runs full bleed on smaller devices.EXAMPLE USAGE:
<Card rounded>...</Card>
or
<Card roundedAbove="mobile">...</Card>