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

New Theme: Pledge your company button too big. #278

Closed
StevenDufresne opened this issue Sep 3, 2024 · 5 comments
Closed

New Theme: Pledge your company button too big. #278

StevenDufresne opened this issue Sep 3, 2024 · 5 comments

Comments

@StevenDufresne
Copy link
Contributor

On the page https://wordpress.org/five-for-the-future-test/pledges/, the "Pledge your company" button is larger than the designs and distracting. Although we don't seem to have button styles that perfectly match the designs, we should probably use the is-small button variant.

Test Site Designs is-small
Screenshot 2024-09-03 at 9 12 20 AM Screenshot 2024-09-03 at 9 12 38 AM Screenshot 2024-09-03 at 9 14 57 AM
@ryelle
Copy link
Contributor

ryelle commented Sep 3, 2024

@fcoveram Did the button styles change? I'm using the default filled button style but as Steve mentions, it's ~10px too tall.

@fcoveram
Copy link

fcoveram commented Sep 3, 2024

I just checked, and I'm also using the default style from the Design Library in the mockups. Perhaps the default versions of the Figma library and code differ?

@ryelle
Copy link
Contributor

ryelle commented Sep 3, 2024

Perhaps the default versions of the Figma library and code differ?

That's my question— they must have matched at some point but something changed. Is it too big everywhere? for example, the buttons in content on https://wordpress.org/ & https://wordpress.org/download/.

@fcoveram
Copy link

fcoveram commented Sep 4, 2024

I got the problem.

The buttons on wp.org and wp.org/download pages have the right padding (with just 2px of difference on the left and right sides). The difference between designs and production is the label's line-height. In the designs is 16px whereas in front is 1.7. That impacts the button's height.

I played with the value on the inspector, and a value of 1.3 looks good. But since this button is a site-wise component, I'm not fully aware of all the areas it will impact.

I'm drawn to apply the change suggested, but I'd like your thoughts first @ryelle?

@ryelle
Copy link
Contributor

ryelle commented Sep 4, 2024

I played with the value on the inspector, and a value of 1.3 looks good. But since this button is a site-wise component, I'm not fully aware of all the areas it will impact.

There shouldn't be anywhere where a button wraps to cause an issue, and even if so, 1.3 is still a readable height. I've opened an issue in the parent theme to fix this, and it should cascade down to fix this issue, so I'll close this one.

@ryelle ryelle closed this as not planned Won't fix, can't repro, duplicate, stale Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

No branches or pull requests

3 participants