Releases: Shopify/polaris-react
Releases · Shopify/polaris-react
v3.13.0
Deprecations
- Deprecated Navigation
Item
’siconBody
prop. Pass a string into theicon
prop instead. (#1299)
Enhancements
- Added an
onChange
handler toCheckableButton
(#1326) Labelled
now wraps its content, no longer causing alabel + action
to get unreasonably squished (#1309)- Updated
polaris-tokens
from2.3.0
to2.5.0
and converted all use ofduration
values (#1268) - More consistent use of
text-breakword
mixin (#1306) - Added an icon and screen reader hint when
Link
opens a new tab (#1247) - Updated open styleguide pr to create multiple pull requests to update
polaris-react
across 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-width
variable and matchingframe-with-nav-when-not-max-width
mixin (#1311) - Updated
Resizer
to schedulehandleHeightCheck
to run in next animation frame (#1301)
Bug fixes
- Fixed
ResourceList
actions from show at incorrect breakpoints or while in select mode (#1333) - Fixed Search overlay stretching below the viewport (#1260)
- Added
onChange
andvalue
to selectAppProvider
examples to remove console errors (#1320) - Fixed promoted bulk actions in
ResourceList
not properly disabling (#1317) (thanks @jineshshah36 for the issue report) - Fixed
ResourceList
header from displaying whenEmptySearchResult
exists (#1286) - Stopped passing the
polaris
context 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
DropZone
to use the new createRef API (#1063) - Updated
ResourceList
to no longer usecomponentWillReceiveProps
(#1235) - Updated
Tabs
to no longer usecomponentWillReceiveProps
(#1221) - Removed an unneeded media query from Modal's
Header
component (#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
focus
method onBanner
(#1219) - Added an
onScrollToBottom
prop toPopover.Pane
(#1248) - Added a
placeholder
prop toFilterControl
(#1257) - Added support for setting string values on the
TextField
autoComplete
prop (#1259)
Bug fixes
- Fixed disabled states while loading for
ResourceList
(#1237) - Fixed
Checkbox
from losing focus and not receiving some modified events(#1112) - Added translation for the cancel button on the
ResourceList
BulkActions
(#1243) - Fixed the
Autocomplete
onLoadMoreResults
prop not being called on scrolling to the end of the option list (#1249)
Documentation
- Removed
button group joined to the bottom of a component
example (#1267)
v3.11.0
Enhancements
- Updated
Navigation
badge prop to accept a react node (#1142) - Changed max width on
Search
to 694px so that it is perfectly centered in the top bar (#1107) - Added
action
prop toToast
(#919) - Remove all usage of
@shopify/javascript-utilities/decorators
, namelyautobind
,debounce
, andmemoize
(#1148) - Added
Empty State
footerContent prop (#1200) - Added viewport condition to
TopBar
to enlarge thecontextControl
wrapper on wider screens (#1231)
Bug fixes
- Fixed selectMode on
ResourceList
not toggling when items are selected programmatically (#1224) - Fixed unnecessary height on
TextField
due to unhandled carriage returns (#901) - Ensured server side rendering matches client side rendering for embedded app components (#976)
- Fixed rendering of the spinner on
TextField
when 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
_.merge
with a custommerge
function (#1018) - Replaced all occurrences of
_.pick
with 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
onScrolledToBottom
prop toModal
(#1117) - Updated
Navigation.Item
to useIcon
wheniconBody
prop is passed in. Renders these icons in animg
tag 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
DropZone
height based on inherited wrapper height #1129 - Fixed missing rounded corners on
Tag
button states (#1078) - Removed reference to
window.Polaris
, which in some cases could be undefined (#1104) - Added padding and margin to
subdued
sections for proper spacing between the header and footer (#1082) - Removed left margin from vertical
Stack
to prevent overflow (#1024) - Fixed the size differences between
SkeletonThumbnail
andThumbnail
(#1141) (thanks @mbaumbach for the issue report) - Refactored
ComboBox
tests that were not running (#1137)
Documentation
- Updated related component documentation for
Page
,PageActions
, andPagination
(#1103) - Improved
Modal
documentation 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
ariaPressed
prop forButton
(#1097) - Fixed examples using the
selected
prop forAutocomplete
(#1053)
Development workflow
- Added viewport meta tag to Storybook frame (#1026)
Code quality
- Removed lodash decorators and replace all occurrences of
_.throttle
withdebounce
(#1009) - Removed all occurrences of
_.replace
(#1012) - Added lodash to
create-react-app
example (#1010) - Updated
create-react-app
example dependencies (#1010) - Replaced all occurrences of
_.capitalize
with a customcapitalize
function (#1015) - Replaced all occurrences of
_.isObject
with a customisObject
function (#1011) - Replaced all occurrences of
_.get
with a customget
function (#1013) - Moved icons specific to
Banner
,DropZone
, andResourceList
to @shopify/polaris-icons (#1042) - Updated spinner component to use the
Image
component instead of an SVG tag to render (#1042)
Deprecations
v3.9.0
v3.8.0
New components
SkeletonThumbnail
for representing thumbnails in loading state
Enhancements
- Updates
TopBar.UserMenu
interaction states styling (#1006) - Added
download
prop toButton
andUnstyledLink
components that enables setting the download attribute (#1027) - Added support for internationalization of month and week names to
DatePicker
(#1005) - Added
untrusted
prop toIcon
to render SVG strings in an img tag (#926) - Added a
data-href
toResourceList.Item
s that have aurl
prop (#1054)
Bug fixes
- Fixed
type="number"
TextField
to prevent conditions where press-and-hold could increment or decrement infinitely (#1029) - Fixed the top border of
DataTable
overlapping its container’s border (#975) - Fixed the
DataTable
sort 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
Tooltip
between activator and message to be consistent withPopover
(#1019) - Fixed
Card
header not showing whentitle
empty or not set (#1031) - Fixed an issue on Chrome when you use a
TextField
insideCollapsible
which 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
TopBar
search input and results with page content (#1008)
Documentation
- Added all props example of
ResourceList
in the style guide (#978)
v3.7.0
Enhancements
- Removed
TopBar
logo background (#957) - Updated
TopBar
search results width to adapt to search input and added a minimum width (#969) - Updated
Card.Section
to acceptReact.ReactNode
astitle
(#781) - Added
contextControl
prop toTopBar
andNavigation
(#966)
Bug fixes
- Fixed
Collapsible
to useoverflow: visible;
once fully open (#951) - Fixed the
DataTable
sort direction not reversing on second sort of the initially sorted column (#918) (thanks @tabrez96 for the issue report) - Fixed
TextField
when passingnull
tovalue
(#964) (thanks @mbaumbach for the original issue) - Changed the default value for
showHidden
prop onResourcePicker
for backward compatibility with legacy EASDK (#981) - Adjusted top and bottom padding to the header, footer and sections in
Card
to 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
DataTable
in the style guide (#1003)
Development workflow
- Fixed links to Polaris component pages in story descriptions (#933)
Dependency upgrades
- Upgraded to
@shopify/polaris-icons
v2.0.0 (#982)
Code quality
v3.6.0
Enhancements
TextField
accepts ashowCharacterCount
prop to enable the display of character count (#709)
Bug fixes
- Fixed vertical misalignment in
Banner.Header
(#870) - Removed a duplicate
activatorWrapper
inPopover
when destructuring props (#916) - Fixed
Banner
secondaryAction content wrapping in Firefox (#719) - Added
onKeyPress
,onKeyDown
, andonKeyUp
toButton
(#860) - Added
monochrome
prop toButton
andLink
component (#821) - Updated
Frame
layout and madeTopBar.UserMenu
visible on mobile (#852) - Added a
forceRender
prop toPage
to not delegate to the app bridge TitleBar action (#695) - Changed
Tabs
example to contain children so thePanel
renders for accessibility (#893) - Fixed timezone not being accounted for in
ResourceList
date filter control (#710) - Removed unnecessary tooltip text in the
TopBar
component (#859)
Documentation
- Added
Stack.Item
properties 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
Button
components with aurl
prop output valid HTML (#773) - Fixed
DropZone
which 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
safeAreaFor
sass mixin to handle browsers that don't supportenv
andconstant
(#881)
Documentation
- Added deprecation guidelines (#853)