Add classes suggestions to taxonomy-term.html.twig

Created on 15 July 2016, over 8 years ago
Updated 10 May 2023, over 1 year ago

The Twig template for node.html.twig (and other templates) added default classes to these. We should do the same for taxonomy templates.

Suggestions include
.taxonomy-term
.taxonomy-term--vocabulary-name
.taxonomy-term--view-mode
.taxonomy-term--vocabulary-name--view-mode

Patch will be added to the comments.

Feature request
Status

Needs work

Version

9.5

Component
Theme 

Last updated about 2 hours ago

Created by

🇮🇪Ireland markconroy

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

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

  • Needs issue summary update

    Issue summaries save everyone time if they are kept up-to-date. See Update issue summary task instructions.

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.

  • First commit to issue fork.
  • Open in Jenkins → Open on Drupal.org →
    Environment: PHP 8.1 & MySQL 5.7
    last update over 1 year ago
    30,325 pass, 1 fail
  • @shivam_tiwari opened merge request.
  • Status changed to Needs review over 1 year ago
  • Status changed to Needs work over 1 year ago
  • 🇺🇸United States smustgrave

    Classy theme is removed in D10 and these changes probably appear in multiple locations.

    Probably better to use a process hook to add the classes as editing a twig template will have to cover BC.

    No test coverage either.

Production build 0.71.5 2024