Skip to content

Commit

Permalink
fix(esco-content-menu): apply bg is dark on fav only on small card
Browse files Browse the repository at this point in the history
  • Loading branch information
jgribonvald committed Nov 21, 2018
1 parent e231ee1 commit 9725b1c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion @uportal/esco-content-menu/src/components/PortletCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
:call-on-toggle-fav="callAfterAction"
:favorite-api-url="favoriteApiUrl"
:user-info-api-url="userInfoApiUrl"
:back-ground-is-dark="backGroundIsDark" />
:back-ground-is-dark="favBgIsDark" />
</div>
</div>
</template>
Expand Down Expand Up @@ -110,6 +110,12 @@ export default {
return appClasses.map((v) => v.toLowerCase()).join(' ');
},
favBgIsDark() {
return (
this.backGroundIsDark &&
(this.size == 'small' || this.size == 'smaller')
);
},
},
methods: {
computeIconUrl(url) {
Expand Down

0 comments on commit 9725b1c

Please sign in to comment.