-
Notifications
You must be signed in to change notification settings - Fork 805
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
Forms: fix seperators not aligning consistently #40967
base: trunk
Are you sure you want to change the base?
Conversation
Are you an Automattician? Please test your changes on all WordPress.com environments to help mitigate accidental explosions.
Interested in more tips and information?
|
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. |
Thanks for taking a look @simison! The issue that is currently happening is that I am targeting the I wanted to implement a css selector that worked as a good default but was also easily overwrite able by the theme. The longer the negative selector is the harder it is to be over-writable by the theme. Since themes usally do the same thing. I will try to experiment with different selectors to see if a better compremise can be reached.
Currently we apply a gap between the elements that are added to the form. I will try to remove this gap a follow up commit. |
@ntsekouras added you as a reviewer in case you know more about how this should work:
|
That's normal. The I'm not sure for the reason for applying |
426720a
to
3ba4a7d
Compare
@aaronrobertshaw FYI added you as a reviewer just in case you have time to offer insights from your experience! |
Thanks for the ping 👍 I've only had the chance for a quick smoke test but this PR seems to achieve its end goal.
Agreed. I think if we're aiming to target the default block style (which is really the absence of a block style) we're best served by targeting the block class without the One other nit is the specificity of the editor style. It would more forward compatible to limit anything that could be styled via global styles, such as margins, to It might also be of interest to note that just because a block doesn't adopt a block support specifically, that doesn't prevent it from being styled via theme.json. So to the point above, the separator block only opts into top/bottom margins in block supports but it could still technically have left/right margins styled against the block type in theme.json. |
Fixes #25025
In my testing I wasn't able to identify the issues that were reported in the Issue. but I did notice that the default spectator doesn't match how the design looks when the seperator is not in the form and has the default styles applied to it.
Proposed changes:
Before:
After:
Other information:
Jetpack product discussion
Does this pull request change what data or activity we track or use?
Testing instructions: