Skip to content

Commit

Permalink
Fix paper-material style for paper-button.
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Joel committed Oct 5, 2016
1 parent 008c392 commit 1895fb3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions paper-button.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<link rel="import" href="../polymer/polymer.html">
<link rel="import" href="../iron-flex-layout/iron-flex-layout.html">
<link rel="import" href="../paper-behaviors/paper-button-behavior.html">
<link rel="import" href="../paper-material/paper-material-shared-styles.html">
<link rel="import" href="../paper-styles/element-styles/paper-material.html">

<!--
Material design: [Buttons](https://www.google.com/design/spec/components/buttons.html)
Expand Down Expand Up @@ -83,7 +83,7 @@

<dom-module id="paper-button">
<template strip-whitespace>
<style include="paper-material-shared-styles">
<style include="paper-material">
:host {
@apply --layout-inline;
@apply --layout-center-center;
Expand Down Expand Up @@ -165,6 +165,10 @@
}
},

created: function() {
this.classList.add('paper-material');
},

_calculateElevation: function() {
if (!this.raised) {
this._setElevation(0);
Expand Down

0 comments on commit 1895fb3

Please sign in to comment.