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
Linkis underlined by default, addedremoveUnderlineprop to remove underline (#3705)- Remove
lightproperty fromTooltipas it now defaults to a light background (#3846) - Made
titleproperty required inModal(#3803) - Made
accessibilityLabelrequired onSheet(#3852) - Removed
NewDesignLanguage,Color,AnimationPropsexported types (#3868) - Replaced
BaseActionwithActiontype (#3868) - Changed the
frameOffsetprop to accept a string inThemeProvider(#3883) - Removed
ButtonandUnstyledButton'sariaPressedprop. Consumers should use thepressedprop instead (#3884) - Removed
Button'sstretchContentprop. Consumers should combine thefullWidthandtextAlign="left"props instead (#3884) - Removed
Popover/PopoverOverlay'spreventAutoFocusprop. Consumers should useautofocusTarget="none"instead (#3884) - Removed
button-filled-disabledandplain-button-backgroundSASS mixins (#3817) - Removed
text-emphasis-placeholderSASS mixin (#3889) - Removed
skeleton-page-header-has-secondary-actionsSass mixin (#3919) - Removed
plainproperty inPaginationas it no longer has any effect. (#3833) - Removed
separatorproperty inPageas it no longer has any effect. (#3918) - Renamed
additionalMetaDatatoadditionalMetadatainHeaderfor consistency withTitle. (#3918)
Enhancements
- Removed duplicate color definition from disclosure
IconinTabs(#3926)