More Material

This commit is contained in:
Paulus Schoutsen
2016-04-08 00:10:39 -07:00
parent d9232df18b
commit cdfec7dc90
38 changed files with 179 additions and 216 deletions

View File

@@ -5,6 +5,7 @@
<dom-module id="ha-entity-toggle">
<style>
paper-icon-button {
color: var(--primary-text-color);
transition: color .5s;
}
paper-icon-button[state-active] {
@@ -13,6 +14,7 @@
paper-toggle-button {
cursor: pointer;
--paper-toggle-button-label-spacing: 0;
padding: 9px 0;
}
</style>
<template>

View File

@@ -25,6 +25,14 @@ export default new Polymer({
},
},
listeners: {
tap: 'onTap',
},
onTap(ev) {
ev.stopPropagation();
},
ready() {
this.forceStateChange();
},