Skip to content

Commit

Permalink
Refactor title-text class
Browse files Browse the repository at this point in the history
  • Loading branch information
abdonrd committed Aug 2, 2016
1 parent eef34e3 commit 980f673
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions paper-card.html
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@
placeholder="[[placeholderImage]]"
preload="[[preloadImage]]"
fade="[[fadeImage]]"></iron-image>
<div hidden$="[[!heading]]" class$="[[_computeHeadingClass(image)]]">[[heading]]</div>
<div hidden$="[[!heading]]" class$="title-text [[_computeHeadingClass(image)]]">[[heading]]</div>
</div>

<content></content>
Expand Down Expand Up @@ -234,10 +234,7 @@
},

_computeHeadingClass: function(image) {
var cls = 'title-text';
if (image)
cls += ' over-image';
return cls;
return image ? ' over-image' : '';
},

_computeAnimated: function(animatedShadow) {
Expand Down

0 comments on commit 980f673

Please sign in to comment.