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-weight
and--p-button-font-weight
(#4687) - Renamed
--p-duration-1-0-0
and--p-duration-1-5-0
to--p-duration-100
and--p-duration-150
. - Removed
--p-override-*
--p-non-null-content
--p-badge-mix-blend-mode
--p-range-slider-thumb-scale
custom properties (#4686) - Removed
nonDesignLangaugeCustomProperties
anddesignLangaugeCustomProperties
(#4770) - Renamed shadow custom properties (#4823)
- Renamed border radius custom properties (#4763)
- Renamed
--p-icon-size
to--p-icon-size-small
(#4990) - Updated
--global-ribbon-height
to--pc-frame-global-ribbon-height
(#4804) - Updated
--p-frame-offset
to--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-multiply
function (#4714) - Removed the
z-index()
function (#4753) - Removed the
border()
function (#4934) - Removed the
available-names()
function (#4967) - Removed the
map-extend
function (#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-shimmer
mixin (#4462) - Removed the
state()
mixin (#4989) - Removed the
skeleton-page-header-layout
mixin (#4991) - Removed the
skeleton-page-secondary-actions-layout
mixin (#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-hidden
scss mixins (#4995) - Replaced the
icon-size()
function with the--p-icon-size-medium
custom property (#4990) - Removed the public scss api (#4993)
Sass global variables
ThemeProvider
- Removed
ThemeProvider
component (#4642) - Moved
logo
fromThemeProvider
toFrame
context (#4667) - Moved
frameOffset
fromThemeProvider
tooffset
prop onFrame
(#4727)
Components
- Removed the deprecated
secondaryAction
prop onSkeletonPage
(#4742)
Development workflow
New components
- Added
CustomProperties
component (#4642)
Enhancements
- Added duration token values between
0
and500
with50ms
increments (#4781) - Aligned easing tokens and values with CSS defaults (#4790)
Bug fixes
- Fixed
ContextualSaveBar
not registering thesecondaryMenu
in theFrame
context (#5116) - Fixed
monochrome
outline
Button
children
being visible whenloading
(#5145)
Dependency upgrades
- Removed
@shopify/polaris-tokens
dependency (#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
additionalNavigation
in<Page>
component