Margin on form-items in table rows (Classy)

Created on 25 February 2016, about 9 years ago
Updated 9 April 2025, 11 days ago

Classy puts a margin on form items, but not when they're in table rows.

This causes problems in contrib: if forms are placed inside responsive tables, there is no spacing between fields:
#2668708: Spacing between fields on paras β†’

This behavior dates back to Drupal 4, and the reasoning is lost in the mists of time. Probably it is that core sometimes has a single form element in a table row (like a checkbox or dropdown) and no more spacing is desired than would be needed for text alone.

The least disruptive solution is:
When a table row has a single form item prevent it from adding unnecessary extra spacing, but if it has multiple form items allow spacing between them.

πŸ› Bug report
Status

Needs work

Version

2.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom jonathanshaw Stroud, UK

Live updates comments and jobs are added and updated live.
  • CSS

    It involves the content or handling of Cascading Style Sheets.

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.71.5 2024