Skip to content

Commit

Permalink
StoryBook: Fix error that could occur when loading compiled CSS (Word…
Browse files Browse the repository at this point in the history
…Press#68526)

* Revert "fix: Fix media query and reduced motion error (WordPress#68464)"

This reverts commit 921536e.

* Add extension explicitly in import statements

Co-authored-by: t-hamano <[email protected]>
Co-authored-by: ciampo <[email protected]>
Co-authored-by: tyxla <[email protected]>
  • Loading branch information
4 people authored Jan 10, 2025
1 parent 22fbc32 commit b2a83a3
Show file tree
Hide file tree
Showing 13 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion packages/edit-site/src/components/layout/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
2 changes: 1 addition & 1 deletion storybook/package-styles/block-editor-ltr.lazy.scss
Original file line number Diff line number Diff line change
@@ -1 +1 @@
@import "../../packages/block-editor/build-style/style";
@import "../../packages/block-editor/build-style/style.css";
2 changes: 1 addition & 1 deletion storybook/package-styles/block-editor-rtl.lazy.scss
Original file line number Diff line number Diff line change
@@ -1 +1 @@
@import "../../packages/block-editor/build-style/style-rtl";
@import "../../packages/block-editor/build-style/style-rtl.css";
6 changes: 3 additions & 3 deletions storybook/package-styles/block-library-ltr.lazy.scss
Original file line number Diff line number Diff line change
@@ -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";
6 changes: 3 additions & 3 deletions storybook/package-styles/block-library-rtl.lazy.scss
Original file line number Diff line number Diff line change
@@ -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";
2 changes: 1 addition & 1 deletion storybook/package-styles/components-ltr.lazy.scss
Original file line number Diff line number Diff line change
@@ -1 +1 @@
@import "../../packages/components/build-style/style";
@import "../../packages/components/build-style/style.css";
2 changes: 1 addition & 1 deletion storybook/package-styles/components-rtl.lazy.scss
Original file line number Diff line number Diff line change
@@ -1 +1 @@
@import "../../packages/components/build-style/style-rtl";
@import "../../packages/components/build-style/style-rtl.css";
2 changes: 1 addition & 1 deletion storybook/package-styles/dataviews-ltr.lazy.scss
Original file line number Diff line number Diff line change
@@ -1 +1 @@
@import "../../packages/dataviews/build-style/style";
@import "../../packages/dataviews/build-style/style.css";
2 changes: 1 addition & 1 deletion storybook/package-styles/dataviews-rtl.lazy.scss
Original file line number Diff line number Diff line change
@@ -1 +1 @@
@import "../../packages/dataviews/build-style/style-rtl";
@import "../../packages/dataviews/build-style/style-rtl.css";
2 changes: 1 addition & 1 deletion storybook/package-styles/edit-site-ltr.lazy.scss
Original file line number Diff line number Diff line change
@@ -1 +1 @@
@import "../../packages/edit-site/build-style/style";
@import "../../packages/edit-site/build-style/style.css";
2 changes: 1 addition & 1 deletion storybook/package-styles/edit-site-rtl.lazy.scss
Original file line number Diff line number Diff line change
@@ -1 +1 @@
@import "../../packages/edit-site/build-style/style-rtl";
@import "../../packages/edit-site/build-style/style-rtl.css";
2 changes: 1 addition & 1 deletion storybook/package-styles/format-library-ltr.lazy.scss
Original file line number Diff line number Diff line change
@@ -1 +1 @@
@import "../../packages/format-library/build-style/style";
@import "../../packages/format-library/build-style/style.css";
2 changes: 1 addition & 1 deletion storybook/package-styles/format-library-rtl.lazy.scss
Original file line number Diff line number Diff line change
@@ -1 +1 @@
@import "../../packages/format-library/build-style/style-rtl";
@import "../../packages/format-library/build-style/style-rtl.css";

0 comments on commit b2a83a3

Please sign in to comment.