Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

StoryBook: Fix error that could occur when loading compiled CSS #68526

Merged
merged 2 commits into from
Jan 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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) {
Copy link
Contributor Author

@t-hamano t-hamano Jan 7, 2025

Choose a reason for hiding this comment

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

This code was reverted in #68464 because it had errors in the trunk, but I've restored it in this PR since it should work correctly.

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";
Loading