Polymer 1.0:如何让纸质按钮在悬停时改变颜色?

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

This example 显示 paper-button 个示例(在最后 [4th] 列 [labeled colors] 中),当用户将鼠标悬停在它上面时会改变颜色。

我在任何地方都找不到 Polymer 1.0 documentation how to make this happen. Also, copying and pasting the source code for the element on this page 不起作用。

有人可以提供一个工作代码示例,说明如何在用户将鼠标悬停在 Polymer 1.0 paper-button 上时改变颜色吗?

在您文档的 CSS 中:

paper-button:hover {
  background: green;
}