v29.1.0
Minor Changes
-
Add
Listcomponent (#710)Listserves as a replacement for theBulletListandBulletcomponents which adds the following improvements:- Support for numbers and alpha characters as bullets
- Support for custom start positions in number/alpha lists
- Rich content support, e.g. list items with multiple paragraphs, nested lists, etc.
Note: The
BulletListandBulletcomponents have been marked as deprecated and will be removed in an upcoming major release.MIGRATION GUIDE
If you want to migrate from
BulletListtoList, you can simply replaceBulletListwithList, andBulletwithText:-<BulletList> - <Bullet>...</Bullet> - <Bullet>...</Bullet> - <Bullet>...</Bullet> -</BulletList> +<List> + <Text>...</Text> + <Text>...</Text> + <Text>...</Text> +</List>
-
TextLink, TextLinkButton, TextLinkRenderer: Default
weightprop to"regular"when nested inside secondary text (#714)As of v28.13.0,
TextLinkcomponents that were nested inside secondary text would be"weak"by default, i.e. the same tone as the surrounding text and underlined. In practice, this turned out to be somewhat unpredictable behaviour for consumers. We've now reverted this to the previous behaviour of being"regular"weight by default, i.e. blue and medium font weight.Note that, if needed, you can still use the weaker link treatment within secondary text via an explicit prop override:
<Text tone="secondary"> The TextLink in this sentence is{' '} <TextLink href="..." weight="weak"> weak. </TextLink> </Text>
Patch Changes
- AccordionItem: Prevent Safari from clipping label text (#712)