Cody Lawson

Results 14 comments of Cody Lawson

@jpeterson What's the preferred way for it to work? Import the css manually instead?

Are there any babel/webpack plugins that take care of this? Not that we shouldn't handle it ourselves, just curious what options there are.

Thanks @joeyHarig! @jgibson02 FYI, not sure if you're still using this component in Velocity for the item selector list.

@arjanvanzutphen This looks related to two dependencies, `uniqid` and `react-popper`. I believe an update to popper will resolve the `ActionBar` bug you're noticing, so I'll hop on that right away....

@samMatenaer These are great recommendations, @brandonlammey any thoughts?

@mpayson Thanks for recording this bug, I saw this happening on another project but wasn't able to reproduce. Knowing the import order makes a difference would explain why. I'll continue...

@apfister In our `Card` component we allow custom colored bars similar to what you're doing here. One difference is that when the user provides a color name, like `"green"`, we...

@apfister Hmm, I'm not sure how `red` or any common color names wouldn't exist as it's built into the default theme and there is a fallback provided to all components....

@apfister Yeah maybe something along the lines of: ``` background-color: `theme.palette[color] || color`; ``` So if the color doesn't exist as a property name on the theme then you would...

@apfister All calcite react components have a default theme so it won't matter if they didn't set it up. But yes, if the color string doesn't match any theme property...