Icon component custom background color
Add a prop to allow a custom background color for the Icon component. @mbeard mentioned most of the App Launcher Tile icons will be orange, he may have more input
(Might go hand in hand with #433)
@kevinparkerson @plumlee-sf @rbmoore
Sorry, just saw this. Yes, for Marketing Cloud, all of the app icons will be orange. For other clouds using this, or once we show apps from other clouds, we'll need to support their equivalent cloud brand colors.
@tweettypography Do we want to support any color via hex values?
OR do we want to only accept existing background colors from the icon set by implementing this ridiculous approach
hex value should be fine, I'm not sure those are really meant to be mix and matched
Some form of tokenization like "marketing-brand" = orange, etc. would be nice if we had access to colors via their name from design tokens.
I did a search for #f59331 in SLDS-internal and design-tokens and it looks like it's manually entered into SLDS.
@jina @brandonferrua Are there any plans to tokenize the cloud brand colors (the new tertiary colors) for consumption in either design-tokens or SLDS? We'd love a JSON file.
Right, the assumption is someone would be passing a design-token, but really a design token is just an alias to a value so what the component receives is still a value.
A few of the class rules on the Icon component are incorrect, I'm doing an audit on it.
One thing I just noticed in the SLDS pattern is a title attr on the container, should I add this?
https://core-204.lightningdesignsystem.com/components/icons/#flavor-base-utility
@iowillhoit I noticed that too when making my custom icon PR - want to make a new PR to correct the issues after your lint PR gets merged?
@tweettypography and then do the background-color PR after that? Or do it all in one?
I'd say do it after, keeping these as small as possible
Just so I'm certain, which version of SLDS should I be targeting? There are several changes and I want to make sure I'm referencing the correct pattern.
2.1.0-rc.4
Done