Skip to content

Commit

Permalink
chore(#102): update promo card
Browse files Browse the repository at this point in the history
  • Loading branch information
Decipher committed Aug 17, 2023
1 parent 0dac032 commit 743c7a9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions src/components/PromoCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,23 @@
class="ct-promo-card"
:class="{
[themeClass]: true,
'ct-promo-card--with-image': hasImage,
'ct-promo-card--image-over': hasImage && $scopedSlots.image_over
}"
>
<div
v-if="hasImage"
class="ct-promo-card__image-wrapper"
class="ct-promo-card__image"
>
<!-- Slot: Image -->
<slot name="image">
<CTImage
:alt="imageAlt"
:src="imageSrc"
:theme="theme"
/>
</slot>
<div class="ct-promo-card__image-over">
<div class="ct-promo-card__image__over">
<!-- Slot: Image over -->
<slot name="image_over" />
</div>
Expand All @@ -37,9 +39,7 @@
v-if="subtitle"
class="ct-promo-card__subtitle"
>
<span :class="'ct-tag ct-theme-'+ theme + ' ct-tag--tertiary'">
{{ subtitle }}
</span>
<CTTag :value="subtitle" :theme="theme" type="tertiary" />
</div>

<!-- Date -->
Expand Down
2 changes: 1 addition & 1 deletion src/mixins/link.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ export default {
props: {
link: {
type: String,
default: '#'
default: undefined
},
linkExternal: {
type: Boolean,
Expand Down

0 comments on commit 743c7a9

Please sign in to comment.