Skip to content

Commit 1133c21

Browse files
authored
refactor(css): replacing slow selector (#5576)
1 parent 22cbc30 commit 1133c21

File tree

6 files changed

+20
-5
lines changed

6 files changed

+20
-5
lines changed

.changeset/rich-baboons-compete.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
"@db-ux/core-foundations": patch
3+
"@db-ux/core-components": patch
4+
"@db-ux/ngx-core-components": patch
5+
"@db-ux/react-core-components": patch
6+
"@db-ux/wc-core-components": patch
7+
"@db-ux/v-core-components": patch
8+
---
9+
10+
refactor(css): replacing slow selector

packages/foundations/scss/colors/_default-color-mappings.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
@layer variables {
2-
:is(:root, :host) {
2+
:root,
3+
:host {
34
--db-neutral-origin-default: light-dark(
45
var(--db-neutral-origin-light-default),
56
var(--db-neutral-origin-dark-default)

packages/foundations/scss/defaults/_default-container-variables.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
:is(:root, :host) {
1+
:root,
2+
:host {
23
--db-container-3xs: 14rem;
34
--db-container-2xs: 16rem;
45
--db-container-xs: 20rem;

packages/foundations/scss/defaults/_default-variables.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
* Do not edit directly, this file was auto-generated.
33
*/
44

5-
:is(:root, :host) {
5+
:root,
6+
:host {
67
--db-base-icon-weight-regular-desktop-headline-3xl: 96;
78
--db-base-icon-weight-regular-desktop-headline-2xl: 80;
89
--db-base-icon-weight-regular-desktop-headline-xl: 64;

packages/foundations/scss/defaults/default-required.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212

1313
/* stylelint-disable-next-line at-rule-prelude-no-invalid,layer-name-pattern */
1414
@layer #{helpers.$layer-variables} {
15-
:is(:root, :host) {
15+
:root,
16+
:host {
1617
@extend %db-font-size-md;
1718

1819
/* COLORS */

packages/foundations/scss/defaults/default-root.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
@forward "../density";
44

55
// Setup default styles for
6-
:is(:root, :host) {
6+
:root,
7+
:host {
78
@extend %db-neutral-bg-basic-level-1;
89
@extend %db-density-regular;
910
}

0 commit comments

Comments
 (0)