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, addedremoveUnderline
prop to remove underline (#3705)- Remove
light
property fromTooltip
as it now defaults to a light background (#3846) - Made
title
property required inModal
(#3803) - Made
accessibilityLabel
required onSheet
(#3852) - Removed
NewDesignLanguage
,Color
,AnimationProps
exported types (#3868) - Replaced
BaseAction
withAction
type (#3868) - Changed the
frameOffset
prop to accept a string inThemeProvider
(#3883) - Removed
Button
andUnstyledButton
'sariaPressed
prop. Consumers should use thepressed
prop instead (#3884) - Removed
Button
'sstretchContent
prop. Consumers should combine thefullWidth
andtextAlign="left"
props instead (#3884) - Removed
Popover
/PopoverOverlay
'spreventAutoFocus
prop. Consumers should useautofocusTarget="none"
instead (#3884) - Removed
button-filled-disabled
andplain-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 inPagination
as it no longer has any effect. (#3833) - Removed
separator
property inPage
as it no longer has any effect. (#3918) - Renamed
additionalMetaData
toadditionalMetadata
inHeader
for consistency withTitle
. (#3918)
Enhancements
- Removed duplicate color definition from disclosure
Icon
inTabs
(#3926)