Skip to content

Polaris v1.1.0

Compare
Choose a tag to compare
@lemonmade lemonmade released this 19 Jun 17:44
· 10159 commits to main since this release

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