react-mdl icon indicating copy to clipboard operation
react-mdl copied to clipboard

Style attribute support

Open okbel opened this issue 9 years ago • 3 comments

I think every Component should support the style attibute in case we want to add inline styles. i.e Radium

okbel avatar Aug 31 '16 15:08 okbel

They should already support it, do you have an example of a component which doesn't support it?

tleunen avatar Aug 31 '16 15:08 tleunen

Sure. CheckBox renders a label tag and an input tag.

When I use a style attr in a Checkbox Component the style goes to input. I need access to the parent label tag

screen shot 2016-08-31 at 2 44 18 pm

okbel avatar Aug 31 '16 17:08 okbel

Good point, I forgot about that.

It's hard to fix before v2 though. In the end, component should have a custom inputProps instead of applying all props on the input instead of the root element :/

tleunen avatar Aug 31 '16 21:08 tleunen