Releases: Shopify/polaris-react
Releases · Shopify/polaris-react
v3.13.0
Deprecations
- Deprecated Navigation
Item’siconBodyprop. Pass a string into theiconprop instead. (#1299)
Enhancements
- Added an
onChangehandler toCheckableButton(#1326) Labellednow wraps its content, no longer causing alabel + actionto get unreasonably squished (#1309)- Updated
polaris-tokensfrom2.3.0to2.5.0and converted all use ofdurationvalues (#1268) - More consistent use of
text-breakwordmixin (#1306) - Added an icon and screen reader hint when
Linkopens a new tab (#1247) - Updated open styleguide pr to create multiple pull requests to update
polaris-reactacross multiple repos (#1069) - Updated the pull request creation to retry when it fails (#1069)
- Exported overlay and layer data attributes for use in consumer components (#1266)
- Added new
frame-with-nav-max-widthvariable and matchingframe-with-nav-when-not-max-widthmixin (#1311) - Updated
Resizerto schedulehandleHeightCheckto run in next animation frame (#1301)
Bug fixes
- Fixed
ResourceListactions from show at incorrect breakpoints or while in select mode (#1333) - Fixed Search overlay stretching below the viewport (#1260)
- Added
onChangeandvalueto selectAppProviderexamples to remove console errors (#1320) - Fixed promoted bulk actions in
ResourceListnot properly disabling (#1317) (thanks @jineshshah36 for the issue report) - Fixed
ResourceListheader from displaying whenEmptySearchResultexists (#1286) - Stopped passing the
polariscontext into the div rendered byScrollable(#1271) - Fixed clickable area on sortable column headers on
DataTable(#1273)
Development workflow
- Upgraded Storybook to v5 (#1140)
Dependency upgrades
Code quality
- Migrated the refs in
DropZoneto use the new createRef API (#1063) - Updated
ResourceListto no longer usecomponentWillReceiveProps(#1235) - Updated
Tabsto no longer usecomponentWillReceiveProps(#1221) - Removed an unneeded media query from Modal's
Headercomponent (#1272) - Replaced all instances where we pass a string representing a bundled icon into
Button. Prefer passing in the React Component from@shopify/polaris-icons(#1297)
v3.12.0
Enhancements
- Added a public
focusmethod onBanner(#1219) - Added an
onScrollToBottomprop toPopover.Pane(#1248) - Added a
placeholderprop toFilterControl(#1257) - Added support for setting string values on the
TextFieldautoCompleteprop (#1259)
Bug fixes
- Fixed disabled states while loading for
ResourceList(#1237) - Fixed
Checkboxfrom losing focus and not receiving some modified events(#1112) - Added translation for the cancel button on the
ResourceListBulkActions(#1243) - Fixed the
AutocompleteonLoadMoreResultsprop not being called on scrolling to the end of the option list (#1249)
Documentation
- Removed
button group joined to the bottom of a componentexample (#1267)
v3.11.0
Enhancements
- Updated
Navigationbadge prop to accept a react node (#1142) - Changed max width on
Searchto 694px so that it is perfectly centered in the top bar (#1107) - Added
actionprop toToast(#919) - Remove all usage of
@shopify/javascript-utilities/decorators, namelyautobind,debounce, andmemoize(#1148) - Added
Empty StatefooterContent prop (#1200) - Added viewport condition to
TopBarto enlarge thecontextControlwrapper on wider screens (#1231)
Bug fixes
- Fixed selectMode on
ResourceListnot toggling when items are selected programmatically (#1224) - Fixed unnecessary height on
TextFielddue to unhandled carriage returns (#901) - Ensured server side rendering matches client side rendering for embedded app components (#976)
- Fixed rendering of the spinner on
TextFieldwhen setting to readOnly (#1118) - Fixed webpack example that does not compile (#1189)
Documentation
- Added accessibility documentation for
Checkbox,RadioButton, andChoiceList(#1145)
Dependency upgrades
- Regenerated the yarn.lock file in the browserify example to resolve security vulnerabilities (#1202)
- Updated browserify example dependencies and dev dependencies (#1191)
- Updated webpack example dependencies and dev dependencies (#1189)
Code quality
- Replaced all occurrences of
_.mergewith a custommergefunction (#1018) - Replaced all occurrences of
_.pickwith a custom pick function (#1020) - Deleted the icons index file that would re-export icons, and replaced it with direct imports (#1195)
- Replaces all instances where we pass a string representing a bundled icon into
Icon. Prefer passing in the React Component from@shopify/polaris-icons(#1196)
v3.10.0
Enhancements
- Added Polaris version information tracking in App Bridge actions (#1087)
- Re-added the navigation’s border-right (#1096)
- Added
onScrolledToBottomprop toModal(#1117) - Updated
Navigation.Itemto useIconwheniconBodyprop is passed in. Renders these icons in animgtag now. (#1094) - Added focus state outlines to be visible when using Windows High Contrast Mode for
Button(#1101)
Bug fixes
- Reverted a change that constrained
DropZoneheight based on inherited wrapper height #1129 - Fixed missing rounded corners on
Tagbutton states (#1078) - Removed reference to
window.Polaris, which in some cases could be undefined (#1104) - Added padding and margin to
subduedsections for proper spacing between the header and footer (#1082) - Removed left margin from vertical
Stackto prevent overflow (#1024) - Fixed the size differences between
SkeletonThumbnailandThumbnail(#1141) (thanks @mbaumbach for the issue report) - Refactored
ComboBoxtests that were not running (#1137)
Documentation
- Updated related component documentation for
Page,PageActions, andPagination(#1103) - Improved
Modaldocumentation for properties only available in a stand-alone app context (#1065) - Added accessibility documentation about
Banner(#1071) - Added accessibility documentation for
InlineError(#1073) - Added accessibility documentation for
Loading(#1075) - Fixed documentation about the
ariaPressedprop forButton(#1097) - Fixed examples using the
selectedprop forAutocomplete(#1053)
Development workflow
- Added viewport meta tag to Storybook frame (#1026)
Code quality
- Removed lodash decorators and replace all occurrences of
_.throttlewithdebounce(#1009) - Removed all occurrences of
_.replace(#1012) - Added lodash to
create-react-appexample (#1010) - Updated
create-react-appexample dependencies (#1010) - Replaced all occurrences of
_.capitalizewith a customcapitalizefunction (#1015) - Replaced all occurrences of
_.isObjectwith a customisObjectfunction (#1011) - Replaced all occurrences of
_.getwith a customgetfunction (#1013) - Moved icons specific to
Banner,DropZone, andResourceListto @shopify/polaris-icons (#1042) - Updated spinner component to use the
Imagecomponent instead of an SVG tag to render (#1042)
Deprecations
v3.9.0
v3.8.0
New components
SkeletonThumbnailfor representing thumbnails in loading state
Enhancements
- Updates
TopBar.UserMenuinteraction states styling (#1006) - Added
downloadprop toButtonandUnstyledLinkcomponents that enables setting the download attribute (#1027) - Added support for internationalization of month and week names to
DatePicker(#1005) - Added
untrustedprop toIconto render SVG strings in an img tag (#926) - Added a
data-hreftoResourceList.Items that have aurlprop (#1054)
Bug fixes
- Fixed
type="number"TextFieldto prevent conditions where press-and-hold could increment or decrement infinitely (#1029) - Fixed the top border of
DataTableoverlapping its container’s border (#975) - Fixed the
DataTablesort direction not reversing on second sort of the initially sorted column (#918) (thanks @tabrez96 for the issue report) - Changed the offset from 5px to 4px in
Tooltipbetween activator and message to be consistent withPopover(#1019) - Fixed
Cardheader not showing whentitleempty or not set (#1031) - Fixed an issue on Chrome when you use a
TextFieldinsideCollapsiblewhich is inside a scrollable element, the text disappeared if you focused a fully hiddenTextField(#1047)
Documentation
- Added accessibility documentation for the button and link components (#924)
- Added accessibility recommendations for the text field and autocomplete components (#968)
Development workflow
v3.7.1
Bug fixes
- Moved character counter to bottom of multiline text input (#992)
- Aligned
TopBarsearch input and results with page content (#1008)
Documentation
- Added all props example of
ResourceListin the style guide (#978)
v3.7.0
Enhancements
- Removed
TopBarlogo background (#957) - Updated
TopBarsearch results width to adapt to search input and added a minimum width (#969) - Updated
Card.Sectionto acceptReact.ReactNodeastitle(#781) - Added
contextControlprop toTopBarandNavigation(#966)
Bug fixes
- Fixed
Collapsibleto useoverflow: visible;once fully open (#951) - Fixed the
DataTablesort direction not reversing on second sort of the initially sorted column (#918) (thanks @tabrez96 for the issue report) - Fixed
TextFieldwhen passingnulltovalue(#964) (thanks @mbaumbach for the original issue) - Changed the default value for
showHiddenprop onResourcePickerfor backward compatibility with legacy EASDK (#981) - Adjusted top and bottom padding to the header, footer and sections in
Cardto add space between action buttons in the header and footer and the card sections. (#962)
Documentation
- Added accessibility documentation for the account connection and setting toggle components (#970)
- Added accessibility documentation for the avatar component (#973)
- Updated docs about App Bridge usage in AppProvider (#945)
- Added all props example to
DataTablein the style guide (#1003)
Development workflow
- Fixed links to Polaris component pages in story descriptions (#933)
Dependency upgrades
- Upgraded to
@shopify/polaris-iconsv2.0.0 (#982)
Code quality
v3.6.0
Enhancements
TextFieldaccepts ashowCharacterCountprop to enable the display of character count (#709)
Bug fixes
- Fixed vertical misalignment in
Banner.Header(#870) - Removed a duplicate
activatorWrapperinPopoverwhen destructuring props (#916) - Fixed
BannersecondaryAction content wrapping in Firefox (#719) - Added
onKeyPress,onKeyDown, andonKeyUptoButton(#860) - Added
monochromeprop toButtonandLinkcomponent (#821) - Updated
Framelayout and madeTopBar.UserMenuvisible on mobile (#852) - Added a
forceRenderprop toPageto not delegate to the app bridge TitleBar action (#695) - Changed
Tabsexample to contain children so thePanelrenders for accessibility (#893) - Fixed timezone not being accounted for in
ResourceListdate filter control (#710) - Removed unnecessary tooltip text in the
TopBarcomponent (#859)
Documentation
- Added
Stack.Itemproperties and description to style guide’s (#772) - Added accessibility documentation to the resource list and data table components (#927)
- Added accessibility recommendations for the caption component (#928)
Development workflow
- Improved build speed by adjusting our rollup workflow (#912) and not optimizing svgs in the node_modules folder (#920)
- Fixed an issue where deployments would use an old version of Yarn, and open a pull request to polaris-styleguide with thousands of deleted integrity hashes in
yarn.lock(#856)
Dependency upgrades
- Updated App Bridge to version 1.0.3 (#844)
Deprecations
v3.5.0
Enhancements
- Update build toolchain to use Babel v7, PostCSS v7 and Rollup v1. Update our build targets match our supported browsers, leading to a reduction in bundle size (#837)
Bug fixes
- Ensure disabled
Buttoncomponents with aurlprop output valid HTML (#773) - Fixed
DropZonewhich was unable to add a duplicate file back to back or add a file again once removed #782. Thank you @jzsplk for the contribution #425 and @vladucu for the clear example. - Added a fallback to the
safeAreaForsass mixin to handle browsers that don't supportenvandconstant(#881)
Documentation
- Added deprecation guidelines (#853)