Releases: Shopify/polaris-react
Releases · Shopify/polaris-react
v4.17.1
v4.17.0
Enhancements
- Added
showFocusBorder
prop to theTopBar.SearchField
to allow users to add show a border on focus (#2886). - Added a theme prop for
frameOffset
(#2887) - Updated the font stack to put
Segoe UI
beforeRoboto
(#2891)
Bug fixes
- Fixed right padding styling issue with the
Tag
component and remove right padding on a removableTag
(#2860). - Fixed secondary navigation spacing when no icon is present (#2874).
Dependency upgrades
- Updated sewing-kit to v0.120.0, and typescript to 3.8.3 (#2873)
Code quality
- Use
downlevel-dts
to produce compatible type definitions for consuming apps using older TypeScript versions (#2875)
v4.16.0
v4.15.2
v4.15.1
v4.15.0
Enhancements
- Added high contrast outline to
Popover
,Card
andIndicator
(#2792) - Removed
overflow: hidden
fromCard
(#2806) - Truncated long sort options in
ResourceList
(#2809
Bug fixes
- Fixed incorrect used while importing from
polaris-tokens
(#2778) - Fixed
DropZone
not supporting new file selection whenallowMultiple
isfalse
(#2737) - Fixed
Pagination
sizing on small screens with tooltips (2747) - Fixed
Popover
setting atabindex
and other accessibility attributes on the activator wrapper when theactivator
is disabled (#2473) - Added a
verticalAlignment
prop toResourceItem
to support control of content alignment (#2743
Development workflow
- Added
check:custom-property
job in travis (#2778) - Exported missing OptionListProps (#2777)
- Omitted the Storybook
AppProvider
decorator for component examples which already contain anAppProvider
(#2807) - Added an
omitAppProvider
front matter concept to prevent automatic wrapping of component examples with anAppProvider
(#2815)
Code quality
- Removed various type assertions and bumped test coverage (#2638)
v4.14.0
Enhancements
- Added high contrast outline to
ActionList
(#2713) - Added high contrast border to
Button
(#2712) - Added styled placeholder image to
Avatar
when initials are blank (#2693) - Added a
preferInputActivator
prop toPopover
to allow better positioning of the overlay (#2754)
Bug fixes
- Updated Polaris Tokens, which now builds modern tokens using TypeScript, fixing issues where Edge threw errors related to modern JavaScript features (#2763)
- Fixed
TrapFocus
stealing focus from otherTrapFocus
's (#2681) - Fixed focus state color on monochrome
Buttons
(#2684) - Fixed container's width on
Modal
(#2692) - Fixed the position property for the backdrop on
Select
from being overwritten by the focus ring (#2748) - Fixed
ResourceItem
Actions
visibility on mouse out (#2742) - Fixed initial server / client render mismatch in
Avatar
(#2751)
Development workflow
- Added first implementation of custom property validation (#2616)
- Refactored consumer build test (renamed to system integration test) (#2735)
- Added Storybook Knobs for customizing theme (#2674)
Code quality
v4.13.1
*** Please note that this release required an upgrade to @shopify/polaris-tokens
that we have since found breaks in the Edge browser. We are currently working on a fix, and advise you to remain at or downgrade to v4.12.0 until this gets resolved and a new release is available with the fix.
Bug fixes
- Fixed a Sass build error (2703)
v4.13.0
Enhancements
- Replaced customer avatar images (#2453)
- Added an optional
totalsName
prop toDataTable
to support custom headings in the totals row (#2660) - Added
cursor: pointer
toChoice
(#2491)
Bug fixes
- Fixed
Uncaught TypeError: Cannot read property 'rightEdge' of undefined
inDataTable
(#2672) - Fixed excessive rendering in
DatePicker
(#2671) - Fixed plurality of
DataTable
totals row heading (#2660)
Documentation
- Changed placeholder product names in
Card
code examples (#2677)
4.12.0
Enhancements
- Added a split variant to
Button
(#2329) - Allow DataTable headers to be React Elements (#2635)
- Added support for explicit order of items in
ActionMenu
(2057) - Made the
DataTable
horizontalNavigation
optional (#2647)
Bug fixes
- Fixed
ReferenceError: React is not defined
inButton
for theesnext
build (#2657) - Fixed scrolling with scrollbar not working in Popover when content changes on scroll (#2627)
- Fixed side-effects from being create during
Modal
s render (#2644) - Work around a build crash when using create-react-app due to a bug in css parsing in
postcss-custom-properties
(#2643) - Removed the
visited
CSS styling for tabs using theurl
prop (#2639)
Development workflow
- Reworked the yarn splash Github comment and added average splash zone information (#2649)
- Re-enabled the web unit tests in the consumer build test (#2663)