File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed
Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change 11## 3.0.0
22
3+ ### Migration Guide
4+
5+ 1 . Add the new required CSS import:
6+
7+ ``` js
8+ import ' react-loading-skeleton/dist/skeleton.css'
9+ ```
10+
11+ 2. Read the full list of breaking changes to see if any affect you.
12+
313### Breaking Changes
414
515- Drop Emotion dependency, add CSS file that must be imported
6- - Add ` import 'react-loading-skeleton/dist/skeleton.css' ` to your code
716 - Dropping Emotion avoids conflicts when multiple Emotion versions are used
817 on one page and reduces bundle size
918- Reimplement ` SkeletonTheme` using React context
@@ -25,7 +34,7 @@ continue to use `react-loading-skeleton` v2.
2534- Add many new style - related props to ` SkeletonTheme`
2635- Publish an ES module in addition to a CommonJS module
2736- Add ` direction` prop to support right- to- left animation
28- - Add ` animationEnabled ` prop to allow disabling the animation
37+ - Add ` enableAnimation ` prop to allow disabling the animation
2938- Add ` containerClassName` prop to allow customizing the container element
3039- Add ` containerTestId` to make testing easier
3140- Change the default ` duration` from 1.2 s to 1.5 s
@@ -36,6 +45,8 @@ continue to use `react-loading-skeleton` v2.
3645
3746### Bug Fixes
3847
48+ - Several common issues are now resolved as a result of removing Emotion
49+ - Fix multi- line skeletons not working with the ` width` prop
3950- Fix the type of the ` wrapper` prop in the type definitions
4051
4152### Thanks!
You can’t perform that action at this time.
0 commit comments