Would be nice we will add formatter's settings for field field_example_color_background for the color of text.

My implementation:
Form to select black, white or yellow colors when the user select field_example_color_background's formatter.

field_example_simple_text (No form formatter):
No form formatter

field_example_color_background (With form formatter):
With form formatter

Form:
Form

Black Text:
Black  Text

White Text:
White  Text

Yellow Text:
Yellow Text

Please review.

Comments

mile23’s picture

Status: Needs review » Needs work

I like it. :-)

The thing is, when I change the color it colorizes the entire node, rather than just the field line.

Also, needs tests.

jungle’s picture

Status: Needs work » Closed (outdated)

v4.0.0 has a similar feature landed for Drupal 9.4+

I am closing this after 7 years to clean up the issue queue. Please feel free to re-open it if necessary.

Thanks!

jungle’s picture