Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
Change placeholder color
Hello
i have a requirement to change the placeholder color inside a aui:input field.
i tried by using the cssClass attribute, global setting in look and feel configuration and changed the color for the whole website.
Still the changes will not be adopt by the placeholder attribute i make in scss or with style-tag
i there a way to change the color of the placeholder font?
Best regards Reiner
i have a requirement to change the placeholder color inside a aui:input field.
i tried by using the cssClass attribute, global setting in look and feel configuration and changed the color for the whole website.
Still the changes will not be adopt by the placeholder attribute i make in scss or with style-tag
i there a way to change the color of the placeholder font?
Best regards Reiner
I'd start with your browser's developer tools, to see where the color comes from and for interactive tries to override it
Your problem seems to me to be not AUI specific.
Just use:
.form-control::placeholder { color: red; }
.form-control:-ms-input-placeholder { color: red; }
.form-control::-ms-input-placeholder { color: red; }
(Chrome/FF/Safari, IE, Edge)
Cheers,
Fredi
Just use:
.form-control::placeholder { color: red; }
.form-control:-ms-input-placeholder { color: red; }
.form-control::-ms-input-placeholder { color: red; }
(Chrome/FF/Safari, IE, Edge)
Cheers,
Fredi
Thank you so much, this works for me
I tried something similar, but without these .formal-control
I tried something similar, but without these .formal-control
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™