Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Unified Diff: third_party/polymer/v1_0/components/iron-icon/iron-icon.html

Issue 1187823002: Update Polymer components and re-run reproduce.sh (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/polymer/v1_0/components/iron-icon/iron-icon.html
diff --git a/third_party/polymer/v1_0/components/iron-icon/iron-icon.html b/third_party/polymer/v1_0/components/iron-icon/iron-icon.html
index ea9778ada32f355c64467314b8d44f9e4615ea8e..bdb55c7dbb8aead00af6f64dae9acdf527055131 100644
--- a/third_party/polymer/v1_0/components/iron-icon/iron-icon.html
+++ b/third_party/polymer/v1_0/components/iron-icon/iron-icon.html
@@ -24,10 +24,10 @@ Example setting size to 32px x 32px:
<iron-icon class="big" src="big_star.png"></iron-icon>
- <style>
+ <style is="custom-style">
.big {
- height: 32px;
- width: 32px;
+ --iron-icon-height: 32px;
+ --iron-icon-width: 32px;
}
</style>
@@ -56,7 +56,7 @@ Example of using an icon named `cherry` from a custom iconset with the ID `fruit
See [iron-iconset](#iron-iconset) and [iron-iconset-svg](#iron-iconset-svg) for more information about
how to create a custom iconset.
-See [iron-icons](http://www.polymer-project.org/components/iron-icons/demo.html) for the default set of icons.
+See [iron-icons](https://elements.polymer-project.org/elements/iron-icons?view=demo:demo/index.html) for the default set of icons.
### Styling
@@ -75,13 +75,6 @@ Custom property | Description | Default
@homepage polymer.github.io
-->
-<style is="custom-style">
- :root {
- --iron-icon-width: 24px;
- --iron-icon-height: 24px;
- }
-</style>
-
<dom-module id="iron-icon">
<style>
@@ -94,8 +87,8 @@ Custom property | Description | Default
fill: currentcolor;
- width: var(--iron-icon-width);
- height: var(--iron-icon-height);
+ width: var(--iron-icon-width, 24px);
+ height: var(--iron-icon-height, 24px);
}
</style>
@@ -184,4 +177,3 @@ Custom property | Description | Default
</script>
</dom-module>
-
« no previous file with comments | « third_party/polymer/v1_0/components/iron-icon/hero.svg ('k') | third_party/polymer/v1_0/components/iron-icons/.bower.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698