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

Jetpack Plans Price Toggle: CSS selector that sets margin should be more specific #35607

Merged
merged 1 commit into from
Aug 20, 2019

Conversation

jsnajdr
Copy link
Member

@jsnajdr jsnajdr commented Aug 20, 2019

Turn the .price-toggle CSS selector into .segmented-control.price-control, to make sure
that it always overrides the base .segmented-control styles.

Fixes a regression introduced in #35051 and reported by @simison in #35051 (comment)

How to test:
Verify that the bug reported by @simison no longer happens. I.e., the placement of the Monthly/Yearly toggle is not broken like here:

Screenshot 2019-08-20 at 10 06 28

Note that the bug is non-deterministic: depends on the exact order of how CSS chunks are loaded, which depends on navigation history etc.

…ore specific

Turn the `.price-toggle` CSS selector into `.segmented-control.price-control`, to make sure
that it always overrides the base `.segmented-control` styles.
@jsnajdr jsnajdr added [Type] Bug [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. CSS Migration labels Aug 20, 2019
@jsnajdr jsnajdr requested review from simison and a team August 20, 2019 12:05
@jsnajdr jsnajdr self-assigned this Aug 20, 2019
@matticbot
Copy link
Contributor

@matticbot
Copy link
Contributor

This PR does not affect the size of JS and CSS bundles shipped to the user's browser.

Generated by performance advisor bot at iscalypsofastyet.com.

Copy link
Contributor

@Aurorum Aurorum left a comment

Choose a reason for hiding this comment

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

👍

Screenshot 2019-08-20 at 13 31 15

@jsnajdr jsnajdr merged commit 91b2c06 into master Aug 20, 2019
@jsnajdr jsnajdr deleted the fix/jetpack-plan-segmented-control branch August 20, 2019 12:38
@matticbot matticbot removed the [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. label Aug 20, 2019
@simison
Copy link
Member

simison commented Aug 20, 2019

Thanks for the quick fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants