Skip to content

Commit

Permalink
Merge pull request #100 from fredj/simple_demo
Browse files Browse the repository at this point in the history
Use expand-more and expand-less icons in demo
  • Loading branch information
notwaldorf authored Jun 12, 2017
2 parents 5e3f717 + dacdbc7 commit 85958cb
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
<link rel="import" href="../../iron-collapse/iron-collapse.html">
<link rel="import" href="../../iron-icons/iron-icons.html">
<link rel="import" href="../../iron-icons/communication-icons.html">
<link rel="import" href="../../iron-icons/hardware-icons.html">
<link rel="import" href="../../iron-icons/social-icons.html">
<link rel="import" href="../../iron-flex-layout/iron-flex-layout.html">
<link rel="import" href="../../paper-button/paper-button.html">
Expand Down Expand Up @@ -223,7 +222,7 @@ <h3>Paper-cards can have expanded supporting text</h3>
<paper-button>Share</paper-button>
<paper-button>Explore</paper-button>
<paper-icon-button
icon="hardware:keyboard-arrow-up"
icon="expand-more"
title="more info"
onclick="_toggle()"
style="float:right;">
Expand All @@ -235,8 +234,7 @@ <h3>Paper-cards can have expanded supporting text</h3>
function _toggle() {
var moreInfo = document.getElementById('more-info');
var iconButton = Polymer.dom(event).localTarget;
iconButton.icon = moreInfo.opened ? 'hardware:keyboard-arrow-up'
: 'hardware:keyboard-arrow-down';
iconButton.icon = moreInfo.opened ? 'expand-more': 'expand-less';
moreInfo.toggle();
}
</script>
Expand Down

0 comments on commit 85958cb

Please sign in to comment.