Skip to content

Conversation

@vianasw
Copy link
Contributor

@vianasw vianasw commented Dec 3, 2025

Fixes FORMS-445

Proposed changes:

  • Double class selectors for higher specificity
  • Add outline: none and box-shadow: none to cover all border-like styles

Other information:

  • Have you written new tests for your changes, if applicable?
  • Have you checked the E2E test CI results, and verified that your changes do not break them?
  • Have you tested your changes on WordPress.com, if applicable (if so, you'll see a generated comment below with a script to run)?

Jetpack product discussion

Does this pull request change what data or activity we track or use?

Testing instructions:

Before:
Screenshot 2025-12-05 at 16 40 17

After:
Screenshot 2025-12-05 at 16 42 14

  • Set your sandbox site theme to Assembler.
  • Add this patch to your sandbox.
  • Create a post and add a Slider field block.
  • Check that the min and max fields and labels have no borders like in the image above.

@vianasw vianasw added [Type] Bug When a feature is broken and / or not performing as intended [Status] In Progress labels Dec 3, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Dec 3, 2025

Are you an Automattician? Please test your changes on all WordPress.com environments to help mitigate accidental explosions.

  • To test on WoA, go to the Plugins menu on a WoA dev site. Click on the "Upload" button and follow the upgrade flow to be able to upload, install, and activate the Jetpack Beta plugin. Once the plugin is active, go to Jetpack > Jetpack Beta, select your plugin (Jetpack), and enable the fix/forms-slider-filter-borders branch.
  • To test on Simple, run the following command on your sandbox:
bin/jetpack-downloader test jetpack fix/forms-slider-filter-borders

Interested in more tips and information?

  • In your local development environment, use the jetpack rsync command to sync your changes to a WoA dev blog.
  • Read more about our development workflow here: PCYsg-eg0-p2
  • Figure out when your changes will be shipped to customers here: PCYsg-eg5-p2

@github-actions
Copy link
Contributor

github-actions bot commented Dec 3, 2025

Thank you for your PR!

When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:

  • ✅ Include a description of your PR changes.
  • ✅ Add a "[Status]" label (In Progress, Needs Review, ...).
  • ✅ Add a "[Type]" label (Bug, Enhancement, Janitorial, Task).
  • ✅ Add testing instructions.
  • ✅ Specify whether this PR includes any changes to data or privacy.
  • ✅ Add changelog entries to affected projects

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:

  1. Ensure all required checks appearing at the bottom of this PR are passing.
  2. Make sure to test your changes on all platforms that it applies to. You're responsible for the quality of the code you ship.
  3. You can use GitHub's Reviewers functionality to request a review.
  4. When it's reviewed and merged, you will be pinged in Slack to deploy the changes to WordPress.com simple once the build is done.

If you have questions about anything, reach out in #jetpack-developers for guidance!

@jp-launch-control
Copy link

jp-launch-control bot commented Dec 3, 2025

Code Coverage Summary

This 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. 🤷

Full summary · PHP report · JS report

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
@vianasw vianasw force-pushed the fix/forms-slider-filter-borders branch from 3467579 to 73194e8 Compare December 4, 2025 14:05
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
@vianasw vianasw requested a review from a team December 5, 2025 15:45
@vianasw vianasw added [Status] Needs Review This PR is ready for review. and removed [Status] In Progress labels Dec 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Block] Contact Form Form block (also see Contact Form label) [Feature] Contact Form [Package] Forms [Status] Needs Review This PR is ready for review. [Type] Bug When a feature is broken and / or not performing as intended

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants