mirror of
https://github.com/home-assistant/frontend.git
synced 2025-11-09 02:49:51 +00:00
More Material
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -25,6 +25,14 @@ export default new Polymer({
|
||||
},
|
||||
},
|
||||
|
||||
listeners: {
|
||||
tap: 'onTap',
|
||||
},
|
||||
|
||||
onTap(ev) {
|
||||
ev.stopPropagation();
|
||||
},
|
||||
|
||||
ready() {
|
||||
this.forceStateChange();
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user