Closed eide-1 closed 1 year ago
Hello !
Please share a sandbox in order for me to test that
Hello,
Thank you for your prompt response. Please take a look at the code sandbox I just created. I can easily change the font size of the placeholder text, but I cannot seem to change the color: Demo App - Codesandbox.
Thanks!
You can get around this with color: "black !important"
but this will make the whole sx object to override everything defined there.
You can get around this with
color: "black !important"
but this will make the whole sx object to override everything defined there.
Thank you! The suggested fix worked flawlessly.
Describe the bug The default shade of grey used for placeholder text on the MuiFileInput component does not meet the W3C minimum contrast requirement. I tried changing the color of the placeholder text using the
sx
property, but it does not seem to work. I can easily change the font size using this method, but the color stays the same.Code used to change font size (this works):
Code used to change font color (this does NOT work):
Expected behavior I should be able to change the color of the placeholder text using
sx