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 8d44015d52967..caf7dd78da4b3 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 4a84559461387..6e2cce4438268 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 d8eacb3d25b58..8657d37518aba 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 a5e373b1c061c..af63958aa4f2f 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 de83f99738553..f472b81d72050 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 e7891f25026c4..c9d2002e2aff7 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 6cba6edf353da..18eccbb8bd7c1 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 b5e1aa042803a..02ed0c9779f80 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 d97479a1a5658..f84964f93850d 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 c704fe9d9530a..c650798e55485 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 ae9ac27d6b51e..a1f44ec2f7c51 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 0f7db59c5d5df..7a7468769865d 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 de2553bb5efa2..7d62ab7000b68 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";