这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@jnealey88
Copy link

@jnealey88 jnealey88 commented Nov 13, 2025

Summary

Fixes #2648

This PR adds fallback CSS rules for form inputs to ensure consistent display across themes that don't provide their own form styling.

Changes

  • Added min-height: 2.5rem to text, email, tel, url, date, number inputs and select elements
  • Added consistent padding: 0.5rem 0.75rem to all form inputs including textareas
  • Uses rem units for scalability across themes with different base font sizes
  • Ensures minimum touch target size meets WCAG accessibility standards (2.5rem = 40px at default 16px base font size)

Testing

  • Form inputs display consistently across different themes
  • Inputs have adequate height for comfortable interaction
  • Touch targets meet 40px minimum size requirement
  • Padding provides adequate spacing for input text
  • Sizing scales appropriately with different theme font sizes

Adds fallback CSS rules for form inputs to ensure consistent display across themes. Includes minimum height of 40px for accessibility and consistent padding.

Fixes godaddy-wordpress#2648
Changes px values to rem for better scalability across themes:
- min-height: 40px → 2.5rem
- padding: 8px 12px → 0.5rem 0.75rem

This allows the sizing to scale proportionally with the theme's base font size.
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.

Form inputs missing min-height and padding causing display issues

1 participant