v42.0.0
42.0.0 (2020-12-11)
Bug Fixes
Features
- Add inset dividers on NavigationList example (ea8b66a)
- Add outline to listitem when hovered to hide list item divider (9a67e62)
- Better behavior for ListItem buttons focus and hover (66db925)
- Rework Dividers (deab976)
- Support inset dividers in Dialogs (34a07c5)
- Use typography components for Empty (5f9ea6c)
BREAKING CHANGES
- List, ListItem and Divider do not have the same
behavior: they do not add automatically a divider border; you have to
add a top Divider and use the divider prop on ListItems to achieve the
same behavior as before. This BC was necessary since we had put the
borders in our default theme and we could not achieve the "inset" effect
with default CSS borders, we needed an extra HTML element for that. We
are now closer to the original MUI implementation.
Summary of changes
- import { CardDivider } from 'cozy-ui/transpiled/react/Divider'
+ import Divider from 'cozy-ui/transpiled/react/Divider'
- import Divider from 'cozy-ui/transpiled/react/Divider'
+ import { DeprecatedDivider } from 'cozy-ui/transpiled/react/Divider'
- <List>
+ <Divider />
+ <List>
- <ListItem />
+ <ListItem divider />