Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

232
Views
How can you change the background color of a mdl button?

Is there a way to change the background color of a FAB button from the framework of getmdl.io? I've already tried to add one more classname to button and change background-color but it doesn't work.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

You can recolour a button by simply adding a color class to the list, this overwrites the existing color and uses the one you provide.

For example, a regular FAB button:

<!-- Colored FAB button -->
<button class="mdl-button mdl-js-button mdl-button--fab mdl-button--colored">
  <i class="material-icons">Some Text Here</i>
</button>

We can insert the color .mdl-color--amber-900 by adding it to the class list:

<button class="mdl-button mdl-js-button mdl-button--fab mdl-button--colored mdl-color--amber-900">
  <i class="material-icons">Some Text Here</i>
</button>
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!