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

Fix: Contact form block dropdown arrow wrapping under field in Assembler theme #8418

Open
wants to merge 1 commit into
base: trunk
Choose a base branch
from

Conversation

MaggieCabrera
Copy link
Contributor

@MaggieCabrera MaggieCabrera commented Nov 14, 2024

Changes proposed in this Pull Request:

It looks like grunion (I thought that was deprecated, but some of the code lives in jetpack apparently) is doing some weird class swapping around, and if we modify the padding of the input element it preaks the arrow for the select. It's really hard to debug because the plugin is doing something with class swapping and rewriting the CSS, so it's not as simple as overriding the class. It was a matter of trial and error to actually verify that the selector apparently causing this problem is in fact input:not([type="submit"]):not([type="checkbox"]) when the element we are targeting is a select!!!

This PR removes the padding altogether from the general input element to avoid this.

Before After
Screenshot 2024-11-14 at 11 34 22 Screenshot 2024-11-14 at 11 34 28

Related issue(s):

Closes #8035

@MaggieCabrera MaggieCabrera self-assigned this Nov 14, 2024
Copy link
Contributor

Preview changes

I've detected changes to the following themes in this PR: Assembler.
You can preview these changes by following the links below:

I will update this comment with the latest preview links as you push more changes to this PR.

Note

The preview sites are created using WordPress Playground. You can add content, edit settings, and test the themes as you would on a real site, but please note that changes are not saved between sessions.

Copy link
Contributor

Theme-Check results

assembler: No changes required ✅.


@MaggieCabrera
Copy link
Contributor Author

it looks like without targetting the general inputs we miss the padding on all of them. I'm trying to untangle this in Jetpack, but it might be that this is the quick solution if that gets complicated to solve in there.

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

Successfully merging this pull request may close these issues.

Contact form block dropdown arrow wrapping under field in Assembler theme
1 participant