Skip to content

Releases: Shopify/polaris

v1.5.2

18 Sep 15:11
Compare
Choose a tag to compare

Bug fixes

  • Fixes alignment of page action links
  • Fixing aspect ratio of thumbnail images

v1.5.1

30 Aug 21:06
Compare
Choose a tag to compare

Bug fixes

  • Fixed disabled buttons when using local class names
  • Fixed Scrollable resize listener not autobinding

v1.5.0

30 Aug 14:51
Compare
Choose a tag to compare

Enhancements

  • Updated scrollable component to remember scroll position on re-render
  • Added checkmark icon to the Icon component
  • Added an example for a disabled TextField

v1.4.1

24 Aug 21:32
Compare
Choose a tag to compare

Various documentation fixes.

v1.4.0

23 Aug 19:47
Compare
Choose a tag to compare

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

10 Aug 21:10
Compare
Choose a tag to compare

Bug fixes

  • Fixed classnames in built *.scss files
  • Fixed broken link in description list README

v1.3.0

09 Aug 21:16
Compare
Choose a tag to compare

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

28 Jul 20:36
Compare
Choose a tag to compare

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 to San 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

19 Jun 17:44
Compare
Choose a tag to compare

Enhancements

  • Added automatic inference of the target property of EASDK buttons in Page’s primaryAction and secondaryActions based on their URL (thanks Dmitriy for the original issue)
  • Added automatic inference of the target property of EASDK breadcrumbs in Page's breadcrumbs prop based on the URL
  • Select option descriptors now accept a diabled attribute to disabled the generated option (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 of ShopifyApp.flashError
  • Checkbox, RadioButton, ChoiceList, Select, and TextField now pass the ID of the changed input as the second argument to their onChange callback (thanks to Miika for the original issue)
  • Popover now respects the z-index of the activator if it exists
  • When putting content as children of Tabs, the default panel that is generated now respects the panelID of the selected tab, and uses a sensible default based on the tab’s id if no panelID 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 a div

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 as Tabs.Panel instead of Tabs.panel
  • Fixed the alignment of prefix and suffix content of TextField (thanks bdillon3 for the original issue)
  • Fixed the disabled text colour in TextField
  • Checkboxs and RadioButtons 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

11 May 13:08
Compare
Choose a tag to compare

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 on Stack not working correctly, and added the missing extraLarge enum value for spacing
  • Fixed Banner’s onDismiss 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 Banners (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