-
Notifications
You must be signed in to change notification settings - Fork 841
Forms: Fix slider filter borders #46182
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
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 🤖 Follow this PR Review Process:
If you have questions about anything, reach out in #jetpack-developers for guidance! |
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. 🤷 |
Increases CSS specificity for slider text label inputs to override theme styles. The Assembler theme (and potentially others) was adding borders to these inputs in the editor. Fixed by: - Doubling class selectors for higher specificity - Adding outline: none and box-shadow: none to cover all border-like styles
3467579 to
73194e8
Compare
The doubled selector approach didn't provide enough specificity against the Assembler theme. This commit uses !important flags to ensure our styles override theme editor styles. Changes: - Remove doubled class selectors (didn't work) - Add !important to all style declarations - Add font-size: 0.9em to fix "bigger inputs" issue - Add line-height, height, and vertical-align controls for proper sizing - Ensures text labels match intended design regardless of theme Fixes FORMS-445
Apply the same fix to the min/max number inputs that was applied to the text labels. This ensures the number inputs also properly override theme styles in the editor. Changes: - Add !important to border, outline, box-shadow (removes borders) - Add !important to background, font properties, colors - Add !important to padding, margin, width, height - Add line-height and vertical-align for consistent sizing - Add outline: none to prevent focus outlines from themes
Fixes FORMS-445
Proposed changes:
Other information:
Jetpack product discussion
Does this pull request change what data or activity we track or use?
Testing instructions:
Before:

After:
