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

Chroid created an issue. See original summary.

NickDickinsonWilde’s picture

Version: 8.x-2.0 » 8.x-2.x-dev

  • 44d9c00 committed on 8.x-2.x
    Issue #3089872 by NickDickinsonWilde: Allow output of colour hex to data...
NickDickinsonWilde’s picture

Status: Active » Fixed

Committed, thanks for the idea/thoughts.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.