Releases: Shopify/polaris-react
Releases · Shopify/polaris-react
v4.25.1
v4.25.0
v4.24.0
v4.23.0
Enhancements
- Added a
fullWidthprop toEmptyStateto support full width layout within a content context (#2992) - Added an
emptyStateprop toResourceListto support in context empty states in list views (#2569) - Improved top bar transitions when theme changes (#3007)
Bug fixes
- Fixed incorrect
iconcolor ofButtonwhendestructiveandplain(#2958)
Development workflow
- Improved speed of type-check and build by enabling TypeScript's
skipLibCheckoption (#2981)
Dependency upgrades
- Updated TypeScript to 3.9.2 (#2981)
v4.22.0
Enhancements
- Truncated long sort options in
ResourceList(#2957 - Updated type restrictions for
Paginationto allow itslabelprop to acceptReact.ReactNodeinstead ofstring(#2972) - Added an
emptySearchStateprop toResourceListto enable the customization of the empty search state (#2971)
Bug fixes
- Added an outline on
Bannerfor Windows high contrast mode (#2878) - Fixed Autocomplete / ComboBox focus (#1089)
- Fixed missing rounded corners on
Banner(#2975) - Fixed typing for
EmptyStateaction (#2977)
Code quality
- Converted
ComboBoxto a functional component (#2918)
Deprecations
- Deprecated
styles/foundation.scssandstyles/shared.scssas entry points to the Polaris Sass public API. They have been replaced with a single filestyles/_public-api.scss. By having a single entry point we make it a little easier for consuming applications to use our public API - you only need to import one file instead of two. Any references to these two files should be replaced with a reference to_public-api.scsswhich lives in the same folder. Consuming applications using sewing-kit should replace references toesnext/styles/foundation.scssandesnext/styles/shared.scsswith a single reference toesnext/styles/_public-api.scss. Note the API itself has not changed - only the mechanism by which you access it. (#2974)
v4.21.0
v4.20.1
v4.20.0
4.20.0 - 2020-04-22
Enhancements
- Removed
max-heightproperty fromTooltip(thanks to @thayannevls for the pull request) - Update
TopBar.Menuto be properly themed in active, hover and focused state (#2928) - Added a centeredLayout prop to
EmptyState(#2939)
Bug fixes
- Fixed
Tagsubmitting forms whenonClickis set (#2895) - Fixed
DescriptionListcontent overflowing whentermordescriptionhave long unbroken words (#2880) - Fixed focusing bug on Filters where a newly opened filter would not initially focus the first input, and a newly opened filter would incorrectly focus after an input selection (#2871)
Development workflow
v4.19.0
Enhancements
- Updated
Filtersto only show the "More filters" button if necessary (#2856). - Updated
TopBarcomponent to showsecondaryMenuon small screens (#2913) Badgeaddscriticalstatus prop styling (#2902)
Bug fixes
- Added
border-radiusto theMediaCardcontainer (#2919)
Code quality
- Set
importsNotUsedAsValuestoerrorin TypeScript configuration to force us to be explicit when importing types (#2901)
v4.18.0
New components
- Added
MediaCardandVideoThumbnail(#2725) - Added
VideoThumbnail(#2725)
Enhancements
- Added utilities for parsing video duration (https://polaris.shopify.com/components/images-and-icons/video-thumbnail) (#2725)