Problem/Motivation
Drupal core's Claro admin theme and the contrib Gin admin themes rely on the form-item__description class for styling form descriptions. The Read-only field widget only adds the description class needed for the Seven admin theme. Claro is now the default admin theme.
Steps to reproduce
Proposed resolution
Add the form-item__description class to read-only widget descriptions.
Remaining tasks
User interface changes
API changes
Data model changes
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | readonly_field_widget-add_claro_description_classes-3320140-2.patch | 662 bytes | chrissnyder |
Issue fork readonly_field_widget-3320140
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
chrissnyderThe attached patch adds the needed description class to support claro/gin.
(I was unable to create an issue fork branch due to current issues with Drupal's GitLab integration. Therefore, attached a patch instead.)
Comment #4
astonvictor commentedComment #7
astonvictor commented