Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
use 'on' class to change on/off style
Browse files Browse the repository at this point in the history
  • Loading branch information
frankiefu committed Dec 17, 2013
1 parent 56889aa commit b7cbc2c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion polymer-ui-toggle-button.css
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ license that can be found in the LICENSE file.
font-size: 10px;
}

:host([value]:host) {
:host(.on:host) {
border: 1px solid #0fb2c6;
}

Expand Down
1 change: 1 addition & 0 deletions polymer-ui-toggle-button.html
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
this.value = !this.value;
},
valueChanged: function() {
this.classList.toggle('on', this.value);
this.$.toggle.classList.toggle('on', this.value);
},
trackStart: function(e) {
Expand Down

0 comments on commit b7cbc2c

Please sign in to comment.