Notice: The Monaca & Onsen UI Community Forum is shutting down.
For Onsen UI bug reports, feature requests and questions, please use the Onsen UI GitHub issues page. For help with Monaca, please contact Monaca Support Team.
Thank you to all our community for your contributions to the forum. We look forward to hearing from you in the new communication channels.
<ons-input modifier="material">
-
Hi
How I change the floating/underbar color fromTeal to regular blue please?
Thanks for your help!
-
@mmike The best way would be generating your own theme (a new guide will be added soon to onsen.io ).
Otherwise, you can simply inspect the DOM and check the classes that provide colors:
.text-input--material__label--active { color: blue; } .text-input--material:focus { background-image: -webkit-linear-gradient(blue, blue), -webkit-linear-gradient(bottom, transparent 1px, #afafaf 1px); background-image: linear-gradient(blue, blue), linear-gradient(to top, transparent 1px, #afafaf 1px); }