Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
This file gives a <div class="warning">
wrapper around the warning message. It should be <div class="messages warning">
to be consitent with other system messages that run through theme_status_messages().
This is one of those PITA things that end up needing to be worked around in the theme layer, and I would like to see it fixed.
Attached is a screenshot demonstrating the problem this causes themers, and a patch to fix.
Comment | File | Size | Author |
---|---|---|---|
Inconsistent classes for system messages.png | 452.44 KB | Jacine | |
tableDragChangedWarning-markup.patch | 1014 bytes | Jacine | |
Comments
Comment #1
RobLoachYup!
The standard messages have the .messages class, so the blocks JavaScript theming should too.
Comment #2
Dries CreditAttribution: Dries commentedGood catch. Thanks for the helpful screenshot too. Committed to CVS HEAD. Thanks!