-
Notifications
You must be signed in to change notification settings - Fork 10.7k
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
[Experimental] Product Filters Redesign > Clear Button: Fix CSS Not Found error #47481
[Experimental] Product Filters Redesign > Clear Button: Fix CSS Not Found error #47481
Conversation
Hi @Aljullu, Apart from reviewing the code changes, please make sure to review the testing instructions as well. You can follow this guide to find out what good testing instructions should look like: |
Test using WordPress PlaygroundThe changes in this pull request can be previewed and tested using a WordPress Playground instance. Test this pull request with WordPress Playground. Note that this URL is valid for 30 days from when this comment was last updated. You can update it by closing/reopening the PR or pushing a new commit. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for working on this, @thealexandrelara! Code changes look, I just left one question to understand the purpose of the CSS file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this CSS really needed or is it only in order to create a file so the warning goes away? Wondering if instead we should simply mark this block as not having a stylesheet, something like this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great suggestion! I forgot about this method, but included your suggestion in f78ad33. Thank you for sharing this!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking great, thanks! 🚢
Changes proposed in this Pull Request:
This PR fixes an error in the console due to the lack of the CSS file for the Product Filter Clear Button block.
Closes #47480.
How to test the changes in this Pull Request:
Using the WooCommerce Testing Instructions Guide, include your detailed testing instructions:
3.1. The error that was appearing was
/wp-content/plugins/woocommerce/assets/client/blocks/product-filter-clear-button.css?ver=wc-9.0.0 net::ERR_ABORTED 404 (Not Found)
.Changelog entry
Significance
Type
Message
Comment
Fix CSS error on the Product Filter Clear Button block