Skip to content

Releases: Shopify/polaris-react

v4.25.1

10 Jun 19:20

Choose a tag to compare

  • Fix latest release on NPM

v4.25.0

04 Jun 22:05

Choose a tag to compare

Enhancements

  • Added ReactNode as an accepted prop type to primaryAction on the Page component (#3002)

v4.24.0

29 May 17:39

Choose a tag to compare

Enhancements

  • Added a fullWidth prop to EmptyState to support full width layout within a content context (#2992)
  • Added an emptyState prop to ResourceList to support in context empty states in list views (#2569)

v4.23.0

29 May 16:09

Choose a tag to compare

Enhancements

  • Added a fullWidth prop to EmptyState to support full width layout within a content context (#2992)
  • Added an emptyState prop to ResourceList to support in context empty states in list views (#2569)
  • Improved top bar transitions when theme changes (#3007)

Bug fixes

  • Fixed incorrect icon color of Button when destructive and plain (#2958)

Development workflow

  • Improved speed of type-check and build by enabling TypeScript's skipLibCheck option (#2981)

Dependency upgrades

  • Updated TypeScript to 3.9.2 (#2981)

v4.22.0

11 May 23:41

Choose a tag to compare

Enhancements

  • Truncated long sort options in ResourceList (#2957
  • Updated type restrictions for Pagination to allow its label prop to accept React.ReactNode instead of string (#2972)
  • Added an emptySearchState prop to ResourceList to enable the customization of the empty search state (#2971)

Bug fixes

  • Added an outline on Banner for Windows high contrast mode (#2878)
  • Fixed Autocomplete / ComboBox focus (#1089)
  • Fixed missing rounded corners on Banner (#2975)
  • Fixed typing for EmptyState action (#2977)

Code quality

  • Converted ComboBox to a functional component (#2918)

Deprecations

  • Deprecated styles/foundation.scss and styles/shared.scss as entry points to the Polaris Sass public API. They have been replaced with a single file styles/_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.scss which lives in the same folder. Consuming applications using sewing-kit should replace references to esnext/styles/foundation.scss and esnext/styles/shared.scss with a single reference to esnext/styles/_public-api.scss. Note the API itself has not changed - only the mechanism by which you access it. (#2974)

v4.21.0

28 Apr 19:44

Choose a tag to compare

Enhancements

  • Added additionalNavigation prop to Page (#2942)

v4.20.1

23 Apr 17:19

Choose a tag to compare

4.20.1 - 2020-04-23

Bug fixes

  • Fixed performance of ResourceItem due to inclusion of children in deep prop comparison within shouldComponentUpdate (#2936)

v4.20.0

22 Apr 19:53

Choose a tag to compare

4.20.0 - 2020-04-22

Enhancements

  • Removed max-height property from Tooltip (thanks to @thayannevls for the pull request)
  • Update TopBar.Menu to be properly themed in active, hover and focused state (#2928)
  • Added a centeredLayout prop to EmptyState (#2939)

Bug fixes

  • Fixed Tag submitting forms when onClick is set (#2895)
  • Fixed DescriptionList content overflowing when term or description have 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

  • Fixed automatic pull request generation for web and styleguide when updating Polaris (#2892)
  • Added an example to Layout that showcases how to space a banner (#2929)

v4.19.0

15 Apr 18:45

Choose a tag to compare

Enhancements

  • Updated Filters to only show the "More filters" button if necessary (#2856).
  • Updated TopBar component to show secondaryMenu on small screens (#2913)
  • Badge adds critical status prop styling (#2902)

Bug fixes

  • Added border-radius to the MediaCard container (#2919)

Code quality

  • Set importsNotUsedAsValues to error in TypeScript configuration to force us to be explicit when importing types (#2901)

v4.18.0

15 Apr 18:44

Choose a tag to compare

New components

Enhancements