Skip to content

Commit

Permalink
Merge pull request #71 from abdonrd/patch-1
Browse files Browse the repository at this point in the history
Refactor title-text class
  • Loading branch information
notwaldorf authored Aug 2, 2016
2 parents eef34e3 + 980f673 commit e0c01ae
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 e0c01ae

Please sign in to comment.