Automattic / themes

Free WordPress themes made by Automattic for WordPress.org and WordPress.com.
https://themeshaper.com
GNU General Public License v2.0
878 stars 352 forks source link

Assembler: Single Choice Option Block's proportion is off/looks squeezed when the theme Assembler is active #7959

Open retnonindya opened 1 month ago

retnonindya commented 1 month ago

Quick summary

When theme Assembler is active on a website, the Single Choice Option Block's display looks squeezed on the live site. Please refer to the following screenshot:

The button looks normal on the page editor:

Screenshot 2024-07-11 at 11 39 28 AM

On the live site, however, you can see the button looks squeezed:

Screenshot 2024-07-11 at 11 40 17 AM

Steps to reproduce

  1. Create a website (I'm using AT site since this is from user's report and the user's site is AT.)
  2. Make sure the site is on the theme Assembler. You can either use "Build Your Homepage" flow from the WPCOM Themes Directory, or search for the theme Assembler on the WPCOM Themes Directory and activate from ther.
  3. Create a post/page. Preferably page.
  4. Add Form Block, and make sure there is a Single Choice Option (Radio) Block in it.
  5. Inside Single Choice Option (Radio) Block, make sure there is a Single Choice Option Block (child block)/add options
  6. See the radio buttons.
  7. Save the page/publish the page.
  8. Check the page on the live site. Notice the squeezed-look.

What you expected to happen

The radio button stays round

What actually happened

The radio button looks squeezed and not proportional.

Impact

Most (> 50%)

Available workarounds?

Yes, easy to implement

Platform (Simple and/or Atomic)

Atomic

Logs or notes

Workaround: Switch theme. In my interaction, I suggested the user switch the theme to TT4.

User report: 8458777-zen

tvolpert commented 1 month ago

The min-height setting on all form fields except checkboxes and submit buttons is what appears to be causing this. I'm not sure why we wouldn't have made an exception for radio buttons as well 🤔

Screenshot 2024-07-11 at 9 57 57 AM

This CSS workaround should correct it:

/* correct radio button sizing | XXXXXX-zen tcrv */ 
.contact-form .grunion-field-wrap input.radio {
  min-height: unset;
}
/* End | XXXXXX-zen tcrv */
github-actions[bot] commented 1 month ago

Support References

This comment is automatically generated. Please do not edit it.

mikeicode commented 1 month ago

We have run into this on multiple DIFM Express builds using Assembler. I used this CSS:

input[type="radio"] {
    min-height: unset !important;
}
krutidugade commented 1 month ago

Another report here 8541929-zen. Suggested adding CSS shared by @mikeicode.