Skip to content

Commit

Permalink
StoryBook: Fix error that could occur when loading compiled CSS (#68526)
Browse files Browse the repository at this point in the history
* Revert "fix: Fix media query and reduced motion error (#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";

1 comment on commit b2a83a3

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flaky tests detected in b2a83a3.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/12710889537
📝 Reported issues:

Please sign in to comment.