Provide CSS classes to enable styling of parent terms

Created on 1 December 2009, about 15 years ago
Updated 3 May 2023, over 1 year ago

The elements in dropdowns for non-tagging taxonomies should have CSS classes.

For example, parent-child relationships are currently only indicated by position in the list and a dash before the child element. I would like to add my own CSS so that I modify the appearance of parent elements to make parents more obvious.

I think this should be a core enhancement. It would bring the dropdown up to the standard of other parts of Drupal, where rich CSS class use allows great styling flexibility.

Note that I realize new features probably belong in the 7.x queue. However, I am not sure what 7.x supports and am trying to discern at #647958: Non-tagging taxonomy features are gone .

I reviewed the other taxonomy modules (http://drupal.org/node/212834), and neither of the 6.x ones do this.

Feature request
Status

Active

Version

7.0 ⚰️

Component
Taxonomy 

Last updated 41 minutes ago

  • Maintained by
  • 🇺🇸United States @xjm
  • 🇬🇧United Kingdom @catch
Created by

🇺🇸United States Aren Cambre

Live updates comments and jobs are added and updated live.
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.

  • 🇦🇺Australia klonos 90% Melbourne, Australia - 10% Larissa, Greece

    We've addressed this in Backdrop CMS with https://github.com/backdrop/backdrop/pull/4382/files (to be included in the upcoming 1.25.0 release in May 15).

    The code changes were fairly minimal and straight forward:

    • mostly an implementation of hook_field_widget_form_alter()
    • a handfoul of CSS lines

    These changes depend on and take advantage of the addition of a new '#indentation' property for form elements in the Form API (which is a new feature, and slightly more elaborate set of changes): https://github.com/backdrop/backdrop/pull/4364/files

    ...so perhaps they can't be considered for inclusion to D7 core.

Production build 0.71.5 2024