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.
Hi there,
Currently the swatch template assigns a style attribute with background RGB's. It would be nice if (at the very least) a 'data attribute' could be provided with the hex value in it so it can be accessed with CSS attribute selectors. Alternatively, or in addition to, it would be beneficial for the "Colour text" formatter to wrap the individual elements in a div/span for the name reasons.
Happy to provide use cases if it would be helpful.
Cheers
Chris
Comments
Comment #2
NickDickinsonWildeComment #4
NickDickinsonWildeCommitted, thanks for the idea/thoughts.