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

Commit

Permalink
Merge pull request #86 from Shinsina/featured-products-header-in-card
Browse files Browse the repository at this point in the history
Add parameter “featured” to alter card head label.
  • Loading branch information
solocommand authored May 27, 2021
2 parents 135e583 + 2dde77c commit 2a79166
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 2 deletions.
6 changes: 5 additions & 1 deletion packages/leaders-program/src/components/card/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
<div v-if="displayBody" class="leaders-card__body">
<content-deck :value="promotions" :limit="4" :item-modifiers="['promo']">
<template #header-left>
Featured Products
{{ featuredProductLabel }}
</template>
<template #header-right>
<view-more
Expand Down Expand Up @@ -113,6 +113,10 @@ export default {
type: Boolean,
default: false,
},
featuredProductLabel: {
type: String,
default: 'Featured Products',
},
},
computed: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
:offset-bottom="offsetBottom"
:promotion-limit="promotionLimit"
:video-limit="videoLimit"
:featuredProductLabel="featuredProductLabel"
@action="emitAction"
/>
</leaders-columns>
Expand Down Expand Up @@ -105,6 +106,10 @@ export default {
type: Number,
default: 3,
},
featuredProductLabel: {
type: String,
default: 'Featured Products',
},
},
computed: {
Expand Down
11 changes: 10 additions & 1 deletion packages/leaders-program/src/components/containers/section.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,12 @@
/>
</template>
<template #dropdown="{ item, isActive }">
<card :company="item" :is-active="isActive" @action="emitAction" />
<card
:company="item"
:is-active="isActive"
:featuredProductLabel="featuredProductLabel"
@action="emitAction"
/>
</template>
</list>
</div>
Expand Down Expand Up @@ -99,6 +104,10 @@ export default {
type: Number,
default: 3,
},
featuredProductLabel: {
type: String,
default: 'Featured Products',
},
},
data: () => ({
Expand Down
5 changes: 5 additions & 0 deletions packages/leaders-program/src/components/leaders.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
:offset-bottom="getResponsiveValue('offsetBottom')"
:promotion-limit="promotionLimit"
:video-limit="videoLimit"
:featuredProductLabel="featuredProductLabel"
@action="emitAction"
/>
</div>
Expand Down Expand Up @@ -151,6 +152,10 @@ export default {
type: Boolean,
default: true,
},
featuredProductLabel: {
type: String,
default: 'Featured Products',
},
},
data: () => ({
Expand Down

0 comments on commit 2a79166

Please sign in to comment.