Skip to content
This repository has been archived by the owner on Dec 19, 2024. It is now read-only.

Commit

Permalink
Use expand-more and expand-less icons in demo
Browse files Browse the repository at this point in the history
  • Loading branch information
fredj committed May 22, 2017
1 parent 5e3f717 commit dacdbc7
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 dacdbc7

Please sign in to comment.