Releases: Shopify/polaris
Releases · Shopify/polaris
v1.6.0
Enhancements
- Documented disabled prop for Checkbox and RadioButton (thanks LeoAref for the original issue)
- Documented progress prop for Badge (thanks sp4cecat for the original issue)
- Added loading prop to Button (thanks bakura10 for the original issue)
- Documented complex Select option (thanks sp4cecat for the original issue)
- Documented TextStyle component
- Improved avatar typography spacing
- Added subtract icon
- Improved acessibility for Pagination
Bug fixes
- Fixed failed dependency installation for unauthenticated GitHub users (thanks mikeyhew for the original issue)
- Fixed Page header spacing
- Fixed TextField focus ring transition
- Fixed Popover not resizing on content updates
v1.5.2
v1.5.1
v1.5.0
v1.4.1
v1.4.0
Enhancements
- Updated import, export, and view icons
- Improved documentation of various components
- Improved how ActionList handles images and groups
- Exposed PopoverCloseSource from Popover component
Bug fixes
- Fixed PageActions spacing in IE11
- Fixed ID inconsistency on TextFields
- Fixed spacing on Page component with no header (thanks bakura10 for the original issue)
- Fixed disabled state on primary and destructive buttons
Chores
- Upgraded javascript-utilities to the latest version
v1.3.1
v1.3.0
Enhancements
- Added an
esnext
build (allows production builds to perform class/method tree shaking) - Changed KeyboardKey component to use
kbd
tag - Added publishing
docs
folder to npm package - Added
fullWidth
option to Popover component
Bug fixes
- Updated Static HTML page examples to correct markup (thanks bartcoppens for the original issue)
- Hide increment and decrement buttons on number input when disabled (thanks kguller for the original issue)
- Fixed link to product content documentation
- Fixed documented type for error prop on Checkbox component
- Fixed Popover reopening when clicking around during transition
- Fixed Popover resizing on content updates
- Fixed vertical alignment of Button content
Sketch UIKit
- Added Sketch color palette file
v1.2.1
Enhancements
- Added helpText to ChoiceList choices (thanks cgenevier for the original issue)
- Added save icon (#433)
- Added accessibilityLabel to Tabs
- Updated icons for Banner
- Improved Page component by fixing up spacing, addin a prop to show a separator below the page title, and changing the secondary actions to roll up into a dropdown menu on small screens
- Improved default stacking behavior for Tooltip and Popover (thanks Taphood for the original issue)
- Added extraTight spacing option to Stack
- Use default subheading type styles for ActionList
- Improved large Button styles
- Updated font-weight for text emphasis (thanks bakura10 for the original issue)
Bug fixes
- Removed the focus state for Banner on click
- Fixed disabled Pagination button looking active
- Fixed alignment on Button
- Fixed min-width on TextField (thanks Asa for the original issue)
- Removed the border-top on EmptyState (thanks Alex for the original issue)
- Fixed Select placeholder value warnings (thanks cgenevier for the original issue)
- Fixed disabled text on iOS
- Fixed type for onChange event (thanks Michaël for the original issue)
Sketch UIKit
- Added color palette page to “Getting started”
- Button typography updated. More changes to come soon.
- Changed typeface from
San Francisco UI
toSan Francisco Pro
. You will need to download the updated typeface here. https://developer.apple.com/fonts/ - Updated to Sketch version 45.2
- Updated layer styles and fonts styles to take advantage of Sketch’s new organizational features.
Documentation
- Fixed disabled Button documentation (thanks Michael for the original issue)
- Fixed project URL in CircleCI badge
- Fixed Stack documentation (thanks Marco for the original issue)
- Added embedded Alert documentation and updated other embedded documentation
Dependency updates
- Updated React TypeScript definitions
Chores
- Updated EASDK metadata structure for generic interfaces
- Removed postinstall hook
Polaris v1.1.0
Enhancements
- Added automatic inference of the
target
property of EASDK buttons inPage
’sprimaryAction
andsecondaryActions
based on their URL (thanks Dmitriy for the original issue) - Added automatic inference of the
target
property of EASDK breadcrumbs inPage
'sbreadcrumbs
prop based on the URL Select
option descriptors now accept adiabled
attribute to disabled the generatedoption
(thanks to Hafiz for the original issue)easdk.showFlashNotice
now accepts an optional options object as its second parameter. Passing{error: true}
will cause the flash to appear as an error, matching the behaviour ofShopifyApp.flashError
Checkbox
,RadioButton
,ChoiceList
,Select
, andTextField
now pass the ID of the changed input as the second argument to theironChange
callback (thanks to Miika for the original issue)Popover
now respects thez-index
of the activator if it exists- When putting content as children of
Tabs
, the default panel that is generated now respects thepanelID
of the selected tab, and uses a sensible default based on the tab’sid
if nopanelID
exists - When selecting a tab in
Tabs
, the matching panel is now focused by default easdk
methods are bound to the object so they can be freely passed as callbacks
Changes
- Avatar now renders as a
span
instead of adiv
Bug fixes
- Fixed contents in
Layout.AnnotatedSection
breaking out of their container (thanks Andrew for the original issue) - Fixed spacing above a primary action in
CalloutCard
when there is no secondary action - Aria attributes are now on the actionable elements of
Tabs
instead of in the list items - Exposed
Panel
asTabs.Panel
instead ofTabs.panel
- Fixed the alignment of
prefix
andsuffix
content ofTextField
(thanks bdillon3 for the original issue) - Fixed the disabled text colour in
TextField
Checkbox
s andRadioButton
s no longer generate invalid HTML in their labels (thanks Ernesto for the original issue)Tabs
no longer steals focus from contained elements (thanks Alex for the original issue)
Design updates
- Reduced horizontal padding on
Breadcrumbs
- Updated icon and internal padding of
FooterHelp
- Updated the
EmptyState
layout and typographic styles
Documentation
- Fixed the code examples o n the embedded app documentation
- Added a simple embedded app example
- Renamed the “Tables and lists” category to “Lists”
- A variety of other documentation updates (thanks to Pablo, Asa, and David for raising issues)
Dependency updates
- Updated all dependencies
Chores
- Added a script to automatically match the published version number to the one referenced in the README
- Added the correct viewport tag to the Playground
- Hid deprecation errors during tests