Releases: Shopify/polaris-react
v4.11.0
Breaking changes
- Remove unstable telemetry API for icons (#2561)
Enhancements
- Added
hideTagsprop toFilters(#2573) - Added
searchResultsOverlayVisibleprop toTopBarwhich adds a translucent background to the search dismissal overlay when results are displayed (#2440)
Bug fixes
-
Fixed a bug where
NavigationcallsonNavigationDismisson large screens when focused and the escape key is pressed (#2607) -
Fixed issue with
Filterscomponent displaying an undesired margin top and bottom on the button element on Safari (#2292) -
Fixed
RangeSliderfocus state style issues (#1926) -
Ensure passing
{key: undefined}into i18n will throw a runtime error in the same way as not passing in the key at all (this was ensured through type-checking at the TypeScript level but people could force through with casting toany) (#2598) -
Ensure the normalizedValue within
TextFieldis a string (this was already ensured through type-checking at the TypeScript level, but people could force through with casting toany, which caused problems) (#2598) -
Fixed an issue with the
Filterscomponent where thearia-expandedattribute wasundefinedon mount (#2589) -
Fixed
TrapFocusfrom tabbing out of the container (#2555) -
Fixed
PositionedOverlaynot correctly getting its position when aligned to the right of the activator (#2587) -
Search dismissal overlay now covers the entire screen (#2440)
-
Search results component will no longer unmount when hidden (#2440)
-
Search results will now match the width of the search field (#2440)
Documentation
- Updated
Cardwith custom footer actions example to be right-aligned (#2603) - Updated styleguide links in the docs (#2521)
- Updated
Subheadingdocumentation to be more consistent and accurate (#2591)
Development workflow
- Updated Storybook to v5.3.2 (#2618)
Dependency upgrades
- Updated
@shopify/polaris-iconsto v3.9.0 (#2610)
Code quality
- Converted
MenuGroupinto a functional component (#2536) - Converted
Layoutinto a functional component (#2538) - Converted
FormLayoutinto a functional component (#2539) - Converted
Stackinto a functional component (#2534) - Converted
BulkActionButtoninto a functional component (#2542) - Converted
Focusinto a functional component (#2540) - Converted
Tabmeasurerinto a functional component (#2535) - Converted
Sectioninto a functional component (#2537) - Converted
Tooltipinto a functional component (#2543) - Converted
Optioninto a functional component (#2541) - Avoided unneeded work in
TextFieldif character count is not rendered (#2598)
v4.10.2
v4.10.1
v4.10.0
4.10.0 - 2019-12-18
Bug fixes
- Fixed
TextFieldto no longer renderaria-invalid="false". Thank you to @alexcleduc for the contribution (#2339). - Fixed
TextFieldto only rendermin,maxandstepattributes when explicitly passed. Thank you to @alexcleduc for the contribution (#2339). - Removed reference to
documentinDropZone(#2560) - Fixed Firefox issue in in
DropZone(#2568) - Fixed layout issue
DropZone(#2568)
Dependency upgrades
v4.9.1
Bug fixes
- Removed reference to
windowinDropZone(#2532) - Fixed a regression in
TrapFocusthat prevented focus outside of aniframe(#2530)
Documentation
- Changed a link to the Polaris icons documentation so it would point to npm (a public resource) rather than the
Shopify/polaris-iconsrepository (which is now private) (#2452)
v4.9.0
Enhancements
- Added
externalprop toResourceList(#2408) - Added
onMouseEnterandonTouchStartprops toButton(#2409) - Added
ariaHaspopupprop toPopover(#2248) - Moved
Buttonstyles from theButtongroupCSS file to theButtonCSS file (#2441) - Added
footerActionAlignmentprop to control<Card>footer action alignment, defaults to'right'(#2407) - Improved contrast of
MessageIndicatorwith a border (#2428) - Removed the need for z-indexes in
Icon(#2207) - Added
featuresprop toAppProvider(#2204) - Added support for using
EmptyStatein a content context (#1570) Pageno longer renders navigation or actions in print mode (#2469)- Migrated
Dropzoneto a functional component and reduced its complexity (#2360) - Added
fluidContentprop toPopover(#2494) - Changed
Button’sdisclosureprop to beboolean | "up" | "down", allowing greater control over the direction the disclosure caret faces (#2431)
Bug fixes
- Prevented scrolling to
Popovercontent in development (#2403) - Fixed an issue where the
DropZonecomponent jumped from an extra-large layout to a layout based on the width of its container (#2412) - Fixed an issue which caused HSL colors to not display in Edge (#2418)
- Added the top bar height to the
TopbarinFrameto ensure theStickycomponents get the correct top position (#2415) - Stopped the
mergeutility function from mutating the objects passed as arguments (#2317) - Updated
Cardfooter actions to be right aligned by default again (#2407) - Fixed the
EmptyStatestyles conditional on theimageContainedprop not being applied (#2477) - Fixed
TrapFocusto keep focus within the container when tabbing past the last element (#2397) - Fixed an accessibility issue where the
Formimplicit submit was still accessible via keyboard (#2447)
Documentation
- Added a details page and kitchen sink example to Storybook (#2402)
- Combined the interface used by
Pageso the types can be parsed (#2358) - Updated the
PageActionsexample (#2471) - Fixed spacing of the
Filtersdata table example (#2477) - Fixed duplicate and unclear prop descriptions of
EmptyState(#2477) - Added an example for a light
Tooltip(#2434)
Development workflow
- Updated splash Github Action to the latest Docker beta version (#2474)
- Updated local splash script to use npm package @shopify/splash (#2474)
- Added
dev test:coverageas an alias foryarn test:coverage(#2496) - Added
dev open coverageandyarn open:coveragecommands to open the coverage report (#2496) - Fixed
yarn test:coverageso it generates a coverage report (#2496) - Updated
yarn test:coverageso it automatically opens the coverage report when complete (#2496)
Dependency upgrades
Code quality
v4.8.0
Enhancements
- Updated
Popoverto focus the correct element when closed (#2255) - Updated the type of the
titleprop inChoiceListfromstringtoReactNode(#2355) - Added
disabledprop toFilterscomponent (#2389) - Added
helpTextprop toFilterscomponent (#2389)
Bug fixes
- Fixed an issue where types were not generated for a JSON config file (#2361)
Development workflow
- Enabled maintainers running
yarn devto hideyarn splashreports from the console by runningDISABLE_SPLASH=1 yarn dev(#2372) - Updated to sewing-kit 0.112.0 and eslint 6 and updated vscode config to use the eslint plugin to format js/ts files (#2369)
Code quality
- Migrated
Popoverto use hooks (#2386)
v4.7.3
v4.7.2
Bug fixes
- Fixed a bug with
TextFieldwhich caused infinite layout and high CPU load in Safari, related to WebKit Bug 194332 (#2379) - Fixed an accessibility issue with
TextFieldmultilinewherearia-multilinewould be set to an invalid typenumber(#2351) - Fixed alignment of disclosure icons on
ResourceItem(#2370)
Documentation
- Updated the
AppProvidersection in the Polaris v3 to v4 migration guide (#2312) - Updated the
Using translationssection in the AppProvider README (#2312)
Development workflow
- Removed the need to upload assets with each release (#2346)