Skip to content

Conversation

@xristos3490
Copy link
Member

@xristos3490 xristos3490 commented Apr 10, 2023

Submission Review Guidelines:

Changes proposed in this Pull Request:

This PR aims to remove blocks-based CSS classes from elements when the current theme is not an FSE theme. This should minimize the footprint of FSE-related changes for legacy themes.

Hint for the reviewer: There is also a risk involved in this PR. Please check the issue description for details.

Closes #37630

How to test the changes in this Pull Request:

Using the WooCommerce Testing Instructions Guide, include your detailed testing instructions:

  1. Use or spin up two stores, one with an FSE theme (e.g., TT2) and another with a non-FSE theme (e.g., Storefront).
  2. Visit a single's product page and inspect the add-to-cart button.
  3. Notice that the wp-element-button class is only added in the FSE theme.

@github-actions github-actions bot added the plugin: woocommerce Issues related to the WooCommerce Core plugin. label Apr 10, 2023
@github-actions
Copy link
Contributor

Test Results Summary

Commit SHA: 0863a76

Test 🧪Passed ✅Failed 🚨Broken 🚧Skipped ⏭️Unknown ❔Total 📊Duration ⏱️
API Tests25900202610m 47s
E2E Tests1860010019619m 55s

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.

@xristos3490 xristos3490 requested a review from Aljullu April 11, 2023 09:38
@github-actions
Copy link
Contributor

github-actions bot commented Apr 11, 2023

Hi @jorgeatorres,

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:
https://github.com/woocommerce/woocommerce/wiki/Writing-high-quality-testing-instructions

Copy link
Contributor

@Aljullu Aljullu left a comment

Choose a reason for hiding this comment

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

LGTM, thanks @xristos3490!

Even though I'm approving from my side, I assigned somebody from Proton to do the last review.

@Aljullu Aljullu requested review from a team and jorgeatorres and removed request for a team April 11, 2023 11:08
Copy link
Member

@jorgeatorres jorgeatorres left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks @xristos3490!

@jorgeatorres jorgeatorres merged commit 3002a19 into trunk Apr 28, 2023
@jorgeatorres jorgeatorres deleted the enchancement/37630-theme-element-class-name branch April 28, 2023 19:57
@github-actions github-actions bot added this to the 7.8.0 milestone Apr 28, 2023
@xristos3490 xristos3490 self-assigned this May 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

plugin: woocommerce Issues related to the WooCommerce Core plugin.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Print blocks-based element CSS classes only when a block theme is used

4 participants