issues
search
sbb-design-systems
/
lyne-components
Components for Lyne Design System
https://lyne-storybook.app.sbb.ch
MIT License
45
stars
13
forks
source link
CSS: Replace [rtl] and [ltr] selectors with :dir
#3050
Closed
kyubisation
closed
2 weeks ago
kyubisation
commented
1 month ago
Replace our CSS [rlt] and [ltr] selector rules with :dir:
https://developer.mozilla.org/en-US/docs/Web/CSS/:dir
Deprecate getDocumentWritingMode and remove usage
Also replace programmatic usage with css lookup (
const rtl = this.matches(':dir(rtl)')
)
const rtl = this.matches(':dir(rtl)')
)