Regression: Vertical Tabs styling on input elements overrides specifically set FAPI keys

Created on 12 November 2010, over 13 years ago
Updated 29 January 2024, 5 months ago

In #925350: Vertical tabs broken β†’ , the following markup was added to solve the issues therein:

/**
 * Prevent text inputs from overflowing when container is too narrow. "width" is
 * applied to override hardcoded cols or size attributes and used in conjunction
 * with "box-sizing" to prevent box model issues from occurring in most browsers.
 */
.vertical-tabs .form-type-textfield input {
  width: 100%;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

Doing so makes setting the #size FAPI key pointless, even if that's what a module author wants. In addition, it makes #field_prefix and #field_suffix pointless, as it results in the display problems exhibited in the attached picture.

This is a pretty big Drupal WTF and a FAPI regression. If one sets specific FAPI keys, Drupal core should honor them, not override them with CSS.

πŸ› Bug report
Status

Closed: outdated

Version

11.0 πŸ”₯

Component
MarkupΒ  β†’

Last updated 5 days ago

No maintainer
Created by

πŸ‡ΊπŸ‡ΈUnited States Mark Trapp

Live updates comments and jobs are added and updated live.
  • Needs backport to D7

    After being applied to the 8.x branch, it should be considered for backport to the 7.x branch. Note: This tag should generally remain even after the backport has been written, approved, and committed.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024