You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: move high-contrast style for button-toggle out of density
Moves the high-contrast style for standard button-toggles from the
density mixin to the base component styles. We previously moved the high
contrast style into the density mixin, but that is not stricly necessary
as the border width can be set to a value that is larger than common
button-toggles. The benefit is that this style can remain in the base
component styles and doesn't need to be generated for each density level.
This came up when we added backwards compatibility logic for the density
API. The high-contrast code uses `@at-root`, while the density API
intends to use that in some situations too. These nested `@at-root`
statements will not work as expected because the high contrast mixin
relies on the parent selector (ampersand) that is causing the density
`@at-root` to be a noop basically.
See: https://www.sassmeister.com/gist/b167ceb6b6d30c8c8c8db1580bce728d.
0 commit comments