NCI-Agency/anet

No color styling when displaying enum values

VassilIordanov opened this issue · 0 comments

Describe the bug
The read only view of enums does not contain colors

To Reproduce
Steps to reproduce the behavior:

  1. 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'
  1. The person editor displays the colors
  2. 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