| Index: polymer_0.5.0/bower_components/paper-fab/paper-fab.html
|
| diff --git a/bower_components/paper-fab/paper-fab.html b/polymer_0.5.0/bower_components/paper-fab/paper-fab.html
|
| similarity index 87%
|
| rename from bower_components/paper-fab/paper-fab.html
|
| rename to polymer_0.5.0/bower_components/paper-fab/paper-fab.html
|
| index de525214047968ce23779bd37589f337dc94b057..c71a5bb7f46198da8b0c76bdf56b4304883db786 100644
|
| --- a/bower_components/paper-fab/paper-fab.html
|
| +++ b/polymer_0.5.0/bower_components/paper-fab/paper-fab.html
|
| @@ -10,10 +10,10 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
| <!--
|
| @group Paper Elements
|
|
|
| -Material Design: <a href="https://spec.googleplex.com/quantum/components/buttons.html">Button</a>
|
| +Material Design: <a href="http://www.google.com/design/spec/components/buttons.html">Button</a>
|
|
|
| `paper-fab` is a floating action button. It contains an image placed in the center and
|
| -comes in two sizes: regular size and a smaller size by applying the class `mini`. When
|
| +comes in two sizes: regular size and a smaller size by applying the attribute `mini`. When
|
| the user touches the button, a ripple effect emanates from the center of the button.
|
|
|
| You may import `core-icons` to use with this element, or provide an URL to a custom icon.
|
| @@ -61,6 +61,7 @@ you should ensure that the `aria-label` attribute is set.
|
| -->
|
|
|
| <link href="../polymer/polymer.html" rel="import">
|
| +<link href="../core-icon/core-icon.html" rel="import">
|
| <link href="../paper-button/paper-button-base.html" rel="import">
|
| <link href="../paper-ripple/paper-ripple.html" rel="import">
|
| <link href="../paper-shadow/paper-shadow.html" rel="import">
|
| @@ -104,10 +105,20 @@ you should ensure that the `aria-label` attribute is set.
|
| pointer-events: none;
|
| z-index: -1;
|
| }
|
| +
|
| + #shadow {
|
| + border-radius: inherit;
|
| + pointer-events: none;
|
| + }
|
| +
|
| + #icon {
|
| + display: block;
|
| + pointer-events: none;
|
| + }
|
| </style>
|
|
|
| <template if="{{raised}}">
|
| - <paper-shadow id="shadow" z="{{z}}" animated></paper-shadow>
|
| + <paper-shadow id="shadow" fit animated></paper-shadow>
|
| </template>
|
|
|
| <!-- to position to ripple behind the icon -->
|
| @@ -151,13 +162,16 @@ you should ensure that the `aria-label` attribute is set.
|
| mini: false,
|
|
|
| raised: true,
|
| - recenteringTouch: false,
|
| - fill: true
|
| + recenteringTouch: true,
|
| + fill: false
|
|
|
| },
|
|
|
| iconChanged: function(oldIcon) {
|
| - this.setAttribute('aria-label', this.icon);
|
| + var label = this.getAttribute('aria-label');
|
| + if (!label || label === oldIcon) {
|
| + this.setAttribute('aria-label', this.icon);
|
| + }
|
| }
|
|
|
| });
|
|
|