9.0.0 - 2022-02-15
For instructions on updating from v8 to v9, see our migration guide.
Breaking changes
CSS custom properties
- Removed
--p-badge-font-weightand--p-button-font-weight(#4687) - Renamed
--p-duration-1-0-0and--p-duration-1-5-0to--p-duration-100and--p-duration-150. - Removed
--p-override-*--p-non-null-content--p-badge-mix-blend-mode--p-range-slider-thumb-scalecustom properties (#4686) - Removed
nonDesignLangaugeCustomPropertiesanddesignLangaugeCustomProperties(#4770) - Renamed shadow custom properties (#4823)
- Renamed border radius custom properties (#4763)
- Renamed
--p-icon-sizeto--p-icon-size-small(#4990) - Updated
--global-ribbon-heightto--pc-frame-global-ribbon-height(#4804) - Updated
--p-frame-offsetto--pc-frame-offset(#4804) - Updated
--top-bar-*to--pc-top-bar-*(#4804)
Sass functions and mixins
- Removed the
color()function (#4696) - Removed the
border-width()function (#4900) - Removed the
filter()function (#4676) - Removed the
px()function (#4751) - Removed the
em()function (#4937) - Removed the
rem()function (#4761) - Removed the
color-multiplyfunction (#4714) - Removed the
z-index()function (#4753) - Removed the
border()function (#4934) - Removed the
available-names()function (#4967) - Removed the
map-extendfunction (#4970) - Removed the
spacing()function and replaced with tokens (#4691) - Removed the
easing()function and replaced with tokens (#4698) - Removed the
duration()function and replaced with tokens (#4699) - Removed the
border-radius()function and replaced with tokens (#4793) - Removed the
shadow()function and replaced with tokens (#4823) - Removed the
font-family()function and replaced with tokens (#4940) - Removed the
ms-high-contrast-color()function and replaced with values (#4938) - Removed the
color-icon()mixin (#4676) - Removed the
skeleton-shimmermixin (#4462) - Removed the
state()mixin (#4989) - Removed the
skeleton-page-header-layoutmixin (#4991) - Removed the
skeleton-page-secondary-actions-layoutmixin (#4991) - Removed the
unstyled-link()mixin and replaced with values (#4951) - Removed the
unstyled-list()mixin and replaced with values (#4960) - Removed the
high-contrast-outline()andhigh-contrast-border()mixins and replaced with tokens and values (#4962) - Removed the
when-printing,when-not-printing,hidden-when-printing, andprint-hiddenscss mixins (#4995) - Replaced the
icon-size()function with the--p-icon-size-mediumcustom property (#4990) - Removed the public scss api (#4993)
Sass global variables
ThemeProvider
- Removed
ThemeProvidercomponent (#4642) - Moved
logofromThemeProvidertoFramecontext (#4667) - Moved
frameOffsetfromThemeProvidertooffsetprop onFrame(#4727)
Components
- Removed the deprecated
secondaryActionprop onSkeletonPage(#4742)
Development workflow
New components
- Added
CustomPropertiescomponent (#4642)
Enhancements
- Added duration token values between
0and500with50msincrements (#4781) - Aligned easing tokens and values with CSS defaults (#4790)
Bug fixes
- Fixed
ContextualSaveBarnot registering thesecondaryMenuin theFramecontext (#5116) - Fixed
monochromeoutlineButtonchildrenbeing visible whenloading(#5145)
Dependency upgrades
- Removed
@shopify/polaris-tokensdependency (#4868)
Code quality
- Replaced font-weight values with tokens (#4599)
- Replaced hardcoded spacing values with spacing tokens (#4775)
- Avoid some usage of
/for division in preparation for dart-sass support #4933)
Deprecations
- Deprecated
additionalNavigationin<Page>component