No color styling when displaying enum values
VassilIordanov opened this issue · 0 comments
VassilIordanov commented
Describe the bug
The read only view of enums does not contain colors
To Reproduce
Steps to reproduce the behavior:
- Create a custom field with for a person of type enum with choices containing colors, like:
test:
type: enum
label: Project status
choices:
GREEN:
label: Green
color: '#c2ffb3'
AMBER:
label: Amber
color: '#ffe396'
- The person editor displays the colors
- When viewing the person, the colors are not there
Expected behavior
ReadonlyEnumField
should carry over colors like EnumField
does
Other issue related to choice: #3804