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

Bundle @wordpress/components to avoid styling incompatibilities #571

Merged
merged 1 commit into from
Apr 9, 2020

Conversation

dechov
Copy link
Contributor

@dechov dechov commented Apr 9, 2020

Changes proposed in this Pull Request

Follows WooCommerce Admin's lead in bundling the @wordpress/components package and pinning to major version 8, rather than depending on the externally loaded instance.

This change avoids missing styles due to changes in WP 5.4 – in particular a breaking change in WordPress/gutenberg#19058 to remove the is-button class – in combination (I think) with style overrides in WooCommerce Admin.

Addresses #508 (comment) and other undesirable button styling such as on this entry point:

Compatibility with the external package can likely be addressed in a future PR, but I believe the most favorable outcome would be for WooCommerce Admin to solve compatibility with version 9 of the package, perhaps by generalizing the selectors or just removing overrides (see woocommerce/woocommerce-admin#3897).

Testing instructions

With a dispute needing review, navigate to dispute evidence screen.

Force disconnected view and navigate to onboarding screen.

Verify proper colors, margins, and border radius for buttons on all screens.

(Requires re-running build/watch.)


  • Tested on mobile (or does not apply)

Follows WooCommerce Admin's lead in bundling the @wordpress/components package and pinning to major version 8, rather than depending on the externally loaded instance. This avoids missing styles due to style overrides in WooCommerce Admin combined with changes in WP 5.4.
@thenbrent thenbrent added the priority: critical The issue is critical—e.g. a fatal error, security problem affecting many customers. label Apr 9, 2020
@vbelolapotkov vbelolapotkov self-assigned this Apr 9, 2020
Copy link
Collaborator

@vbelolapotkov vbelolapotkov left a comment

Choose a reason for hiding this comment

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

Compared to the master branch and confirm the changes fix the problem.
Good catch, @dechov ! 👍

@dechov dechov merged commit f7be0da into master Apr 9, 2020
@dechov dechov deleted the update/bundle-wp-components branch April 9, 2020 16:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: critical The issue is critical—e.g. a fatal error, security problem affecting many customers.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants