Unable to set class attributes using preprocess functions for date display themes.

Created on 21 September 2015, about 9 years ago
Updated 28 January 2023, almost 2 years ago

Date display theme functions hardcode class attribute on the HTML element which prevents theme preprocess functions from adding classes through drupal_attributes(). The current output results in two class attributes which is invalid HTML and it seems the second one will be ignored, see http://stackoverflow.com/questions/9512330/multiple-class-attributes-in-...

Propose not hardcoding class attribute, instead append it to attributes in the theme function. Patch to follow.

πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States lwalley

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.

Production build 0.71.5 2024