@polymer/paper-badge
Advanced tools
Comparing version 3.0.1 to 3.1.0
@@ -30,3 +30,3 @@ { | ||
}, | ||
"version": "3.0.1", | ||
"version": "3.1.0", | ||
"main": "paper-badge.js", | ||
@@ -33,0 +33,0 @@ "author": "The Polymer Authors", |
@@ -76,2 +76,4 @@ /** | ||
* `--paper-badge-height` | The height of the badge circle | `20px` | ||
* `--paper-badge-icon-width` | The width of the badge icon, allowed up to the width of the badge | `12px` | ||
* `--paper-badge-icon-height` | The height of the badge icon, allowed up to the height of the badge | `12px` | ||
* `--paper-badge-margin-left` | Optional spacing added to the left of the badge. | `0px` | ||
@@ -78,0 +80,0 @@ * `--paper-badge-margin-bottom` | Optional spacing added to the bottom of the badge. | `0px` |
@@ -75,2 +75,4 @@ /** | ||
`--paper-badge-height` | The height of the badge circle | `20px` | ||
`--paper-badge-icon-width` | The width of the badge icon, allowed up to the width of the badge | `12px` | ||
`--paper-badge-icon-height` | The height of the badge icon, allowed up to the height of the badge | `12px` | ||
`--paper-badge-margin-left` | Optional spacing added to the left of the badge. | `0px` | ||
@@ -80,3 +82,2 @@ `--paper-badge-margin-bottom` | Optional spacing added to the bottom of the badge. | `0px` | ||
@group Paper Elements | ||
@element paper-badge | ||
@@ -86,2 +87,3 @@ @demo demo/index.html | ||
Polymer({ | ||
/** @override */ | ||
_template: html` | ||
@@ -100,4 +102,4 @@ <style> | ||
iron-icon { | ||
--iron-icon-width: 12px; | ||
--iron-icon-height: 12px; | ||
--iron-icon-width: var(--paper-badge-icon-width, 12px); | ||
--iron-icon-height: var(--paper-badge-icon-height, 12px); | ||
} | ||
@@ -188,2 +190,3 @@ | ||
/** @override */ | ||
attached: function() { | ||
@@ -194,2 +197,4 @@ // Polymer 2.x does not have this.offsetParent defined by attached | ||
/** @override */ | ||
attributeChanged: function(name) { | ||
@@ -196,0 +201,0 @@ if (name === 'hidden') { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
25820
428