From b2a83a36f7901f5df7df1b742549ee5c65b73dad Mon Sep 17 00:00:00 2001 From: Aki Hamano <54422211+t-hamano@users.noreply.github.com> Date: Fri, 10 Jan 2025 22:58:27 +0900 Subject: [PATCH] StoryBook: Fix error that could occur when loading compiled CSS (#68526) * Revert "fix: Fix media query and reduced motion error (#68464)" This reverts commit 921536e1fbddda54e518fb29e6904555c23452ae. * Add extension explicitly in import statements Co-authored-by: t-hamano Co-authored-by: ciampo Co-authored-by: tyxla --- packages/edit-site/src/components/layout/style.scss | 2 +- storybook/package-styles/block-editor-ltr.lazy.scss | 2 +- storybook/package-styles/block-editor-rtl.lazy.scss | 2 +- storybook/package-styles/block-library-ltr.lazy.scss | 6 +++--- storybook/package-styles/block-library-rtl.lazy.scss | 6 +++--- storybook/package-styles/components-ltr.lazy.scss | 2 +- storybook/package-styles/components-rtl.lazy.scss | 2 +- storybook/package-styles/dataviews-ltr.lazy.scss | 2 +- storybook/package-styles/dataviews-rtl.lazy.scss | 2 +- storybook/package-styles/edit-site-ltr.lazy.scss | 2 +- storybook/package-styles/edit-site-rtl.lazy.scss | 2 +- storybook/package-styles/format-library-ltr.lazy.scss | 2 +- storybook/package-styles/format-library-rtl.lazy.scss | 2 +- 13 files changed, 17 insertions(+), 17 deletions(-) diff --git a/packages/edit-site/src/components/layout/style.scss b/packages/edit-site/src/components/layout/style.scss index 8d44015d529671..caf7dd78da4b34 100644 --- a/packages/edit-site/src/components/layout/style.scss +++ b/packages/edit-site/src/components/layout/style.scss @@ -118,7 +118,7 @@ // This ensure the radius work properly. overflow: hidden; - @media (prefers-reduced-motion: no-preference) { + @media not (prefers-reduced-motion) { transition: border-radius, box-shadow 0.4s; } diff --git a/storybook/package-styles/block-editor-ltr.lazy.scss b/storybook/package-styles/block-editor-ltr.lazy.scss index 4a84559461387f..6e2cce4438268d 100644 --- a/storybook/package-styles/block-editor-ltr.lazy.scss +++ b/storybook/package-styles/block-editor-ltr.lazy.scss @@ -1 +1 @@ -@import "../../packages/block-editor/build-style/style"; +@import "../../packages/block-editor/build-style/style.css"; diff --git a/storybook/package-styles/block-editor-rtl.lazy.scss b/storybook/package-styles/block-editor-rtl.lazy.scss index d8eacb3d25b585..8657d37518abac 100644 --- a/storybook/package-styles/block-editor-rtl.lazy.scss +++ b/storybook/package-styles/block-editor-rtl.lazy.scss @@ -1 +1 @@ -@import "../../packages/block-editor/build-style/style-rtl"; +@import "../../packages/block-editor/build-style/style-rtl.css"; diff --git a/storybook/package-styles/block-library-ltr.lazy.scss b/storybook/package-styles/block-library-ltr.lazy.scss index a5e373b1c061cd..af63958aa4f2fd 100644 --- a/storybook/package-styles/block-library-ltr.lazy.scss +++ b/storybook/package-styles/block-library-ltr.lazy.scss @@ -1,3 +1,3 @@ -@import "../../packages/block-library/build-style/style"; -@import "../../packages/block-library/build-style/theme"; -@import "../../packages/block-library/build-style/editor"; +@import "../../packages/block-library/build-style/style.css"; +@import "../../packages/block-library/build-style/theme.css"; +@import "../../packages/block-library/build-style/editor.css"; diff --git a/storybook/package-styles/block-library-rtl.lazy.scss b/storybook/package-styles/block-library-rtl.lazy.scss index de83f997385539..f472b81d720507 100644 --- a/storybook/package-styles/block-library-rtl.lazy.scss +++ b/storybook/package-styles/block-library-rtl.lazy.scss @@ -1,3 +1,3 @@ -@import "../../packages/block-library/build-style/style-rtl"; -@import "../../packages/block-library/build-style/theme-rtl"; -@import "../../packages/block-library/build-style/editor-rtl"; +@import "../../packages/block-library/build-style/style-rtl.css"; +@import "../../packages/block-library/build-style/theme-rtl.css"; +@import "../../packages/block-library/build-style/editor-rtl.css"; diff --git a/storybook/package-styles/components-ltr.lazy.scss b/storybook/package-styles/components-ltr.lazy.scss index e7891f25026c4c..c9d2002e2aff74 100644 --- a/storybook/package-styles/components-ltr.lazy.scss +++ b/storybook/package-styles/components-ltr.lazy.scss @@ -1 +1 @@ -@import "../../packages/components/build-style/style"; +@import "../../packages/components/build-style/style.css"; diff --git a/storybook/package-styles/components-rtl.lazy.scss b/storybook/package-styles/components-rtl.lazy.scss index 6cba6edf353da5..18eccbb8bd7c11 100644 --- a/storybook/package-styles/components-rtl.lazy.scss +++ b/storybook/package-styles/components-rtl.lazy.scss @@ -1 +1 @@ -@import "../../packages/components/build-style/style-rtl"; +@import "../../packages/components/build-style/style-rtl.css"; diff --git a/storybook/package-styles/dataviews-ltr.lazy.scss b/storybook/package-styles/dataviews-ltr.lazy.scss index b5e1aa042803aa..02ed0c9779f805 100644 --- a/storybook/package-styles/dataviews-ltr.lazy.scss +++ b/storybook/package-styles/dataviews-ltr.lazy.scss @@ -1 +1 @@ -@import "../../packages/dataviews/build-style/style"; +@import "../../packages/dataviews/build-style/style.css"; diff --git a/storybook/package-styles/dataviews-rtl.lazy.scss b/storybook/package-styles/dataviews-rtl.lazy.scss index d97479a1a5658e..f84964f93850d2 100644 --- a/storybook/package-styles/dataviews-rtl.lazy.scss +++ b/storybook/package-styles/dataviews-rtl.lazy.scss @@ -1 +1 @@ -@import "../../packages/dataviews/build-style/style-rtl"; +@import "../../packages/dataviews/build-style/style-rtl.css"; diff --git a/storybook/package-styles/edit-site-ltr.lazy.scss b/storybook/package-styles/edit-site-ltr.lazy.scss index c704fe9d9530ae..c650798e554856 100644 --- a/storybook/package-styles/edit-site-ltr.lazy.scss +++ b/storybook/package-styles/edit-site-ltr.lazy.scss @@ -1 +1 @@ -@import "../../packages/edit-site/build-style/style"; +@import "../../packages/edit-site/build-style/style.css"; diff --git a/storybook/package-styles/edit-site-rtl.lazy.scss b/storybook/package-styles/edit-site-rtl.lazy.scss index ae9ac27d6b51ef..a1f44ec2f7c51d 100644 --- a/storybook/package-styles/edit-site-rtl.lazy.scss +++ b/storybook/package-styles/edit-site-rtl.lazy.scss @@ -1 +1 @@ -@import "../../packages/edit-site/build-style/style-rtl"; +@import "../../packages/edit-site/build-style/style-rtl.css"; diff --git a/storybook/package-styles/format-library-ltr.lazy.scss b/storybook/package-styles/format-library-ltr.lazy.scss index 0f7db59c5d5dfb..7a7468769865db 100644 --- a/storybook/package-styles/format-library-ltr.lazy.scss +++ b/storybook/package-styles/format-library-ltr.lazy.scss @@ -1 +1 @@ -@import "../../packages/format-library/build-style/style"; +@import "../../packages/format-library/build-style/style.css"; diff --git a/storybook/package-styles/format-library-rtl.lazy.scss b/storybook/package-styles/format-library-rtl.lazy.scss index de2553bb5efa20..7d62ab7000b68b 100644 --- a/storybook/package-styles/format-library-rtl.lazy.scss +++ b/storybook/package-styles/format-library-rtl.lazy.scss @@ -1 +1 @@ -@import "../../packages/format-library/build-style/style-rtl"; +@import "../../packages/format-library/build-style/style-rtl.css";