Search code examples
polymerweb-componentpolymer-1.0

Polymer 1.0: How to make paper-button change color on hover?


This example shows paper-button examples (in the last [4th] column [labeled colors]) that change color when the user hovers the mouse over it.

I can not find anywhere in the Polymer 1.0 documentation how to make this happen. Also, copying and pasting the source code for the element on this page doesn't work.

Can somebody please provide a working code example of how to make a Polymer 1.0 paper-button change color when the user hovers the mouse over it?


Solution

  • In your document's CSS:

    paper-button:hover {
      background: green;
    }