Jetpack button: prevent button from stretching vertically#41790
Conversation
|
Thank you for your PR! When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:
This comment will be updated as you work on your PR and make changes. If you think that some of those checks are not needed for your PR, please explain why you think so. Thanks for cooperation 🤖 The e2e test report can be found here. Please note that it can take a few minutes after the e2e tests checks are complete for the report to be available. Follow this PR Review Process:
Still unsure? Reach out in #jetpack-developers for guidance! Jetpack plugin: The Jetpack plugin has different release cadences depending on the platform:
If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. |
|
Are you an Automattician? Please test your changes on all WordPress.com environments to help mitigate accidental explosions.
Interested in more tips and information?
|
Code Coverage SummaryThis PR did not change code coverage! That could be good or bad, depending on the situation. Everything covered before, and still is? Great! Nothing was covered before? Not so great. 🤷 |
coder-karen
left a comment
There was a problem hiding this comment.
Tests well on the affected site applying manually, and testing on my own test sites the Mailchimp (and all) buttons that work well are not affected. ![]()
Fixes #40851
Proposed changes:
A user reported an issue with the height of the Jetpack button in a Mailchimp block. The button would stretch vertically. We could link the root of the issue to this Gutenberg update, which applied a
height: 100%rule to the button.wp-block-button__linkelement. To counterbalance that, we're explicitly marking the height of.wp-block-buttonasfit-content.Other information:
Jetpack product discussion
n/a
Does this pull request change what data or activity we track or use?
No.
Testing instructions:
No one who tried to troubleshoot this issue could reproduce the bug locally or in a new environment (see the issue comment thread). To verify that this fix works, we can manually edit the CSS on the user site.
.wp-block-button__linkelement, comment out theheight: unsetrules that were manually added as a fix.wp-block-button, apply the ruleheight: fit-content. The button should no longer stretch.