Skip to content
This repository has been archived by the owner on Dec 19, 2024. It is now read-only.

Commit

Permalink
Add @OverRide, remove @attribute/@group/@hero/@homepage (#145)
Browse files Browse the repository at this point in the history
  • Loading branch information
aomarks authored Jun 19, 2019
1 parent c4d6474 commit 14761d4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions paper-toggle-button.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,12 @@ Custom property | Description | Default
This element applies the mixin `--paper-font-common-base` but does not import `paper-styles/typography.html`.
In order to apply the `Roboto` font to this element, make sure you've imported `paper-styles/typography.html`.
@group Paper Elements
@element paper-toggle-button
@demo demo/index.html
*/
Polymer({
is: 'paper-toggle-button',

/** @override */
_template: html`
<style>
:host {
Expand Down Expand Up @@ -246,6 +245,7 @@ Polymer({
return dir === 'rtl';
},

/** @override */
attached: function() {
var isRtl = this.__calculateIsRtl();
if (isRtl) {
Expand Down Expand Up @@ -314,6 +314,7 @@ Polymer({
return ripple;
},

/** @override */
registered() {
this._template.setAttribute('strip-whitespace', '');
}
Expand Down

0 comments on commit 14761d4

Please sign in to comment.