Skip to content

Commit 0dfed10

Browse files
vaadin-botvursen
andauthored
refactor: remove unnecessary usages of :where() (#10674) (#10684)
Co-authored-by: Sergey Vinogradov <mr.vursen@gmail.com>
1 parent ccadabe commit 0dfed10

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

packages/component-base/src/styles/style-props.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ addGlobalStyles(
3232
'vaadin-base',
3333
css`
3434
@layer vaadin.base {
35-
:where(html) {
35+
html {
3636
/* Background color */
3737
--vaadin-background-color: light-dark(#fff, #222);
3838
@@ -121,7 +121,7 @@ addGlobalStyles(
121121
}
122122
123123
@supports not (color: hsl(0 0 0)) {
124-
:where(html) {
124+
html {
125125
--_vaadin-safari-17-deg: 1deg;
126126
}
127127
}

packages/component-base/src/styles/user-colors.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ addGlobalStyles(
1010
'vaadin-base-user-colors',
1111
css`
1212
@layer vaadin.base {
13-
:where(html) {
13+
html {
1414
--_color-count: 10;
1515
--_hue-step: round(360 / var(--_color-count), 1);
1616
--vaadin-user-color-0: var(--vaadin-user-color, oklch(0.52 0.2 240));

packages/form-layout/src/styles/vaadin-form-layout-base-styles.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ addGlobalStyles(
1111
'vaadin-form-layout-base',
1212
css`
1313
@layer vaadin.base {
14-
:where(html) {
14+
html {
1515
--vaadin-form-layout-label-spacing: var(--vaadin-gap-s);
1616
--vaadin-form-layout-label-width: 8em;
1717
--vaadin-form-layout-column-spacing: var(--vaadin-gap-l);

0 commit comments

Comments
 (0)