Stripe React elements' placeholders have an Opacity: 1
CSS property, that cannot be changed using the style object. Other ::placeholder
CSS properties can be changed.
Style object:
const iframeStyles = {
base: {
color: "#276678", //$blue
fontSize: "30px",
lineHeight: "38px",
fontFamily: "Lato",
fontWeight: 400,
"::placeholder": {
color: "#C8D7DE", //$bluepastel
opacity: 0,
}
},
invalid: {
},
complete: {
}
};
Firefox inspect output:
I have tried !important
, but it didn't work. The opacity prop just doesn't apply. Is there any workaround to solve this issue?