Releases: Shopify/polaris
Releases · Shopify/polaris
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
Polaris v1.0.3
Thanks to everyone who said kind words and posted issues against our initial release!
Big fixes
- Fixed an issue where the embedded components would not reload the page within the Shopify admin (thanks Rich for the original issue)
- Fixed the
spacing="none"
variation onStack
not working correctly, and added the missingextraLarge
enum value forspacing
- Fixed
Banner
’sonDismiss
callback not being called when the dismiss button was clicked (thanks to Taylor for the original issue)
Design updates
- Updated Badge text colors
- Updated line height for the small
DisplayText
variation - Updated the default icon for error
Banner
s (thanks to Michael for the original issue)
Sketch UIKit
- Added app examples (thanks to lukepxu for the original issue)
- Removed references to the Graphik typeface (thanks to Adam for the original issue)
- Left-aligned button text for better resizing
- Added Messenger link to navigation to better communicate that the channel nav collapses after 3 items
- Fixed alignment of table headers
- Minor updates to Dataviz and Reports examples
- Added indicators to Home notifications
Documentation
- Synchronized component documentation with the style guide
Chores
- Fixed an issue that prevented the public CHANGELOG from being generated correctly
- Added a hot-reloading Playground to easily try out different components
- Removed the references to Babel presets from
package.json
(thanks to Massimo for digging into this with us) - Removed the
@import
statements at the top of source Sass files - Updated TSLint and related linting dependencies
Polaris v1.0.2
Thanks to everyone who said kind words and posted issues against our initial release!
Bug fixes
- Fixed an issue where subcomponents with variations would use a single
-
instead of--
(thanks johnsonab for the original issue) - Fixed a missing typing dependency and a missing
embedded
types entry point that were causing issues using this package with TypeScript (thanks to Rich for the original issues) - Fixed an issue where the anchor tag for
ResourceList.Item
s would not span the full width of the item (thanks to Steven for the original issue)
Dependency updates
- Started using the
prop-types
package instead of gettingPropTypes
fromreact
, as the latter is deprecated as of React 15.5.0
Documentation
- Corrected the name of
documentation/Embeddded apps.md
todocumentation/Embedded apps.md
(thanks to Chris for the original issue) - Fixed the
ColorPicker
documentation to show valid values forsaturation
,brightness
, andalpha
(thanks to Allan for the original issue)
Chores
- Added a description to
package.json
- Added license to
package.json
and to the root of the repo (thanks to Daniel for the original issue) - Fixed an issue where the Webpack example would complain about a missing dependency (thanks to Rafael for the original issue)
Polaris v1.0.0
Download any of the assets below, and be sure to check out https://polaris.shopify.com for more details about our component library.