Patch Changes
-
#9612
e552c9a15Thanks @jesstelford! - - [Choice][checkbox][RadioButton] Use CSS-native:hoverstyling.By using CSS-native hover styling, and pulling it up to the wrapping
<label>
it avoids an issue where the browser would briefly detect hover with the
:hover pseudo selector settingcursor: pointer, but then get overwritten
with the JS onMouseOver styles 100ms later tocursor: default, resulting in
a flash of a pointy-hand for the cursor on disabled Checkbox. -
#9606
3536e3aa0Thanks @jesstelford! - - [Internal]: Generate contiguous responsive CSS variables.Ensures the CSS vars set via
styleprops will override the responsive-props
SASS mixin which forces them to have a value ofinitial.Forcing to
initialis required when components are nested to avoid an outer
component accidentally setting a value for a nested component by specifying a
CSS variable (CSS vars are globally scoped and later-in-DOM has more
specificity).However,
initialis not usable within a
calc(),
so any unset values will not fallback as they would when the browser
encounters avar(--some-var-equals-initial, fallback).Adding this
forceContiguousflag means we can be sure we're setting exactly
what the user asked for when passing in their prop, and notinitial,
therefore retaining the existing behaviour while forward supporting the usage
ofcalc(). We still need theinitialvalues to ensure any lower
breakpoints that are unset do not inherit parent values accidentally. -
#9621
26053bd3fThanks @samrose3! - Only use Inter for experimental styles -
Updated dependencies [
6d4baffde,3536e3aa0,58406fd98,26053bd3f]:- @shopify/polaris-tokens@7.5.0