-
Notifications
You must be signed in to change notification settings - Fork 10.8k
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] Utilize WP generated class names when styling new active filters block. #44069
Conversation
Hi @dinhtungdu, 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: |
@@ -159,7 +158,7 @@ private function render_chip_item( $args ) { | |||
|
|||
$remove_label = sprintf( 'Remove %s filter', wp_strip_all_tags( $title ) ); | |||
?> | |||
<li class="wc-block-active-filters__list-item"> | |||
<li class="list-item"> | |||
<span class="is-removable wc-block-components-chip wc-block-components-chip--radius-large"> |
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.
The only thing I left alone were these components chip classes. I assume they're borrowing styles from another component with some conditional overrides.
…mmerce-blocks, woocommerce
Test Results SummaryCommit SHA: e2240f5
To view the full API test report, click here. To view the full E2E test report, click here. To view all test reports, visit the WooCommerce Test Reports Dashboard. |
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.
Changes proposed in this Pull Request:
@dinhtungdu and I agreed that we don't need to create our own unique class names or use bem style syntax, its overly verbose and doesn't add anything.
Instead we scope all styles to the class name generated for the block by WP, and also remove the BEM style prefix from any scoped class names. (To keep PR's small and testable I'm addressing one block at a time.)
Additionally, I noticed a lot of copy pasted styles from the old block that we don't use or need.
This is part of #43167
How to test the changes in this Pull Request:
Changelog entry
Significance
Type
Message
[Experimental] Utilize WP generated class names when styling new active filters block.
Comment