Is this a question? You can use the <Style> component to change placeholder colors.
I created the issue by mistake, sorry. Thanks anyway for the answer.
<Style scopeSelector='.myInputs' rules={{
'::-webkit-input-placeholder': {
color: placeholderColor
},
':-moz-placeholder': {
color: placeholderColor
},
'::-moz-placeholder': {
color: placeholderColor
},
':-ms-input-placeholder': {
color: placeholderColor
}
}} />
It would be nice if the vendor prefices could be handled like those of transition.
@ianobermiller is it possible that this is broken?
<Style scopeSelector='.myInputs' rules={{
'::-webkit-input-placeholder': {
color: placeholderColor
},
':-moz-placeholder': {
color: placeholderColor
},
'::-moz-placeholder': {
color: placeholderColor
},
':-ms-input-placeholder': {
color: placeholderColor
}
}} />
produces
.myInputs ::-webkit-input-placeholder{color: green;}.myInputs :-moz-placeholder{color: green;}.myInputs ::-moz-placeholder{color: green;}.myInputs :-ms-input-placeholder{color: green;}
And it should be
.myInputs::-webkit-input-placeholder{color: green;}.myInputs:-moz-placeholder{color: green;}.myInputs::-moz-placeholder{color: green;}.myInputs:-ms-input-placeholder{color: green;}
@RobinMalfait yep, see https://github.com/FormidableLabs/radium/issues/712
@alexlande I wrote a hack for this at the moment:
<Style
scopeSelector={`.${HEADER_INPUT}::-webkit-input-placeholder`}
rules={STYLES.inputPlaceholderStyles}
/>
Is this considered a complete solution? What about handling auto-prefixing?
I got away with it using the * selector
Most helpful comment
It would be nice if the vendor prefices could be handled like those of
transition.