> 1) Colors in Contact Chip > > ContactChip in MDL example has classes which gives color for text and > background for contact part. > > "mdl-color--teal" and "mdl-color-text--white" > > How actually it should be implemented ? I should add some properties ? > > contactColorName = "white", contactTextColorName = "red" in component code > > "mdl-color--" + contactColorName > > But more natural probably will be give user ability to set up "#FFFFFF". > Maybe we should leave it as it is and if someone want to add color will > have > provide it by CSS. >
searching a bit I found this: https://material.google.com/style/color.html#color-color-palette https://gitlab.com/material/colors/blob/master/colors.html so maybe we could have two vars to mount the name? i.e: color and colorWeight... > > 2) Contact part can be also an image. I was thinking to expose "image" > property - where it will be path to img. Question is how actually assing > such patch to span as it is show in example [1] ? > > looks good, I think both possibilities should be added, since means versatility for the component -- Carlos Rovira http://about.me/carlosrovira