design-system-react icon indicating copy to clipboard operation
design-system-react copied to clipboard

Icon component custom background color

Open iowillhoit opened this issue 10 years ago • 13 comments

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)

iowillhoit avatar Jul 15 '16 22:07 iowillhoit

@kevinparkerson @plumlee-sf @rbmoore

tweettypography avatar Jul 19 '16 15:07 tweettypography

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.

mbeard avatar Jul 19 '16 15:07 mbeard

@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

iowillhoit avatar Jul 20 '16 18:07 iowillhoit

hex value should be fine, I'm not sure those are really meant to be mix and matched

tweettypography avatar Jul 20 '16 18:07 tweettypography

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.

interactivellama avatar Jul 20 '16 19:07 interactivellama

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.

tweettypography avatar Jul 20 '16 20:07 tweettypography

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 avatar Jul 20 '16 20:07 iowillhoit

@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 avatar Jul 20 '16 20:07 tweettypography

@tweettypography and then do the background-color PR after that? Or do it all in one?

iowillhoit avatar Jul 20 '16 20:07 iowillhoit

I'd say do it after, keeping these as small as possible

tweettypography avatar Jul 20 '16 21:07 tweettypography

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.

iowillhoit avatar Jul 20 '16 22:07 iowillhoit

2.1.0-rc.4

tweettypography avatar Jul 20 '16 22:07 tweettypography

Done

tweettypography avatar Jul 22 '16 21:07 tweettypography