Card Container region icon contrast

522 Views Asked by At

I have a card region where I display an icon on each card. The contrast for the icons is too low - they are barely visible. How can I change the icon color and/or contrast

1

There are 1 best solutions below

6
On

One option is to modify region attributes (disable "Apply Theme Colors") and use your own CARD_COLOR identifier in query (e.g. in a CASE expression), such as

select empno as card_id, 
       ename as card_title,
       ...
       CASE 
         WHEN instr(deptno, 1) > 0 THEN 'u-color-1'        --> this
         WHEN instr(deptno, 2) > 0 THEN 'u-color-9'
         WHEN instr(deptno, 3) > 0 THEN 'u-color-39'
         ELSE 'u-color-22'
       END as CARD_COLOR
from ...