sl-design-system / components

SL Design System
https://sanomalearning.design/
Apache License 2.0
33 stars 3 forks source link

Change ::backdrop background #664

Open anna-lach opened 9 months ago

anna-lach commented 9 months ago

After ::backdrop fixes in standard: https://drafts.csswg.org/css-position-4/#backdrop we need to use our background token (--sl-body-surface-overlay) for the backdrop in a proper way in css and remove current workaround in the dialog component.

DanielleRameau commented 3 months ago

We can't remove our workaround if it is not supported by all browsers. More information: https://caniuse.com/mdn-css_selectors_backdrop_inherit_from_originating_element