github Shopify/polaris v6.0.0

latest releases: @shopify/polaris@13.2.0, @shopify/stylelint-polaris@16.0.1, @shopify/polaris-tokens@9.0.1...
3 years ago

Polaris React v6.0.0 is a major release that introduces breaking changes, primarily due to the new visual style.

For instructions on updating from v5 to v6, read the migration guide.

Breaking changes

  • Link is underlined by default, added removeUnderline prop to remove underline (#3705)
  • Remove light property from Tooltip as it now defaults to a light background (#3846)
  • Made title property required in Modal (#3803)
  • Made accessibilityLabel required on Sheet (#3852)
  • Removed NewDesignLanguage, Color, AnimationProps exported types (#3868)
  • Replaced BaseAction with Action type (#3868)
  • Changed the frameOffset prop to accept a string in ThemeProvider (#3883)
  • Removed Button and UnstyledButton's ariaPressed prop. Consumers should use the pressed prop instead (#3884)
  • Removed Button's stretchContent prop. Consumers should combine the fullWidth and textAlign="left" props instead (#3884)
  • Removed Popover/PopoverOverlay's preventAutoFocus prop. Consumers should use autofocusTarget="none" instead (#3884)
  • Removed button-filled-disabled and plain-button-background SASS mixins (#3817)
  • Removed text-emphasis-placeholder SASS mixin (#3889)
  • Removed skeleton-page-header-has-secondary-actions Sass mixin (#3919)
  • Removed plain property in Pagination as it no longer has any effect. (#3833)
  • Removed separator property in Page as it no longer has any effect. (#3918)
  • Renamed additionalMetaData to additionalMetadata in Header for consistency with Title. (#3918)

Enhancements

  • Removed duplicate color definition from disclosure Icon in Tabs (#3926)

Bug fixes

  • Fixed an accessibility issue where high contrast styles wouldn’t be applied to the Tag component (#3810)
  • Fixed ColorPicker checker background to remain visible on a white background (#3812)

Don't miss a new polaris release

NewReleases is sending notifications on new releases.