Skip to main content
gautams4173
February 13, 2023
Question

Card Tile Color

  • February 13, 2023
  • 6 replies
  • 1 view

Hi,

Can we change the color of the card template tile from accent to some color of our choice ? 

6 replies

stefanhelzle0001
Brainy
February 13, 2023

As you can read in the documentation, it supports an hex-coded color code like #123456.

gautams4173
February 13, 2023

Hi, I cant see any attribute of cardChoiceField / CardTemplateTile component that takes in hex code as a value. Please tell me if Im wrong

stefanhelzle0001
Brainy
February 13, 2023

Got it. I assumed you talk about cardLayouts. Sorry, it seems like chard choices do not support a background color as of now. The icon color can be any color your like.

abhayd3663
February 13, 2023

You may try to use a!richTextItem() for primaryText / secondaryText within a!cardTemplateTile(), if that works you can have styled text.