Add alternating even/odd classes for the fieldset depth level in Seven

Created on 17 June 2017, over 7 years ago
Updated 28 January 2023, almost 2 years ago

To deal with deeply nested fieldsets on larger forms, I have added an oscillating odd/even CSS class to tags in my Seven subtheme by overriding theme_fieldset and updating the CSS selectors. IMO, this is an improvement over the current theming of relying solely upon gray borders and a single change to #f8f8f8 at the 3rd level of nesting.

I also slightly tweaked the non-white fieldset background color from #f8f8f8 to #f7f7f3 to better match the Seven header.

Can this change be added to the Seven theme in Drupal core?

✨ Feature request
Status

Needs work

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States aubjr_drupal

Live updates comments and jobs are added and updated live.
  • Needs screenshots

    The change alters the user interface, so before and after screenshots should be added to document the UI change. Make sure to capture the relevant region only. Use a tool such as Aviary on Windows or Skitch on Mac OS X.

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