Skip to content

v3.0.0

Compare
Choose a tag to compare
@souhe souhe released this 22 May 06:33
· 68 commits to master since this release

Drop wrapper provider for components wrapped in withTheme

Previously if the theme differed from the one in context, we wrapped the component in a provider as well. However, most components don't need it and it can be confusing when trying to override the theme for only specific component.

This commit drops this extra wrapper. The old behavior can still be achieved by explicitly using a ThemeProvider instead of a theme prop.

This is a BREAKING CHANGE