Skip to content

Commit 1defb70

Browse files
committed
fix(BCard): footer border variant uses footer prop
internal sub component used a prop not meant for that component. test(card): card.spec.ts finished
1 parent d5f634c commit 1defb70

File tree

2 files changed

+343
-66
lines changed

2 files changed

+343
-66
lines changed

packages/bootstrap-vue-3/src/components/BCard/BCard.vue

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
<template>
22
<component :is="tag" class="card" :class="classes">
3-
<!-- Img if on top -->
43
<b-card-img v-if="imgSrc && !imgBottomBoolean" v-bind="imgAttr" />
5-
<!-- Header -->
64
<b-card-header
75
v-if="header || $slots.header || headerHtml"
86
v-bind="headerAttrs"
@@ -12,7 +10,6 @@
1210
{{ header }}
1311
</slot>
1412
</b-card-header>
15-
<!-- Body -->
1613
<b-card-body v-if="!noBodyBoolean" v-bind="bodyAttrs" :class="bodyClass">
1714
<slot>
1815
{{ bodyText }}
@@ -21,7 +18,6 @@
2118
<slot v-else>
2219
{{ bodyText }}
2320
</slot>
24-
<!-- Footer -->
2521
<b-card-footer
2622
v-if="footer || $slots.footer || footerHtml"
2723
v-bind="footerAttrs"
@@ -31,7 +27,6 @@
3127
{{ footer }}
3228
</slot>
3329
</b-card-footer>
34-
<!-- Img if on bottom -->
3530
<b-card-img v-if="imgSrc && imgBottomBoolean" v-bind="imgAttr" />
3631
</component>
3732
</template>
@@ -149,7 +144,7 @@ const bodyAttrs = computed(() => ({
149144
150145
const footerAttrs = computed(() => ({
151146
bgVariant: props.footerBgVariant,
152-
borderVariant: props.borderVariant,
147+
borderVariant: props.footerBorderVariant,
153148
html: props.footerHtml,
154149
tag: props.footerTag,
155150
textVariant: props.footerTextVariant,

0 commit comments

Comments
 (0)