Skip to content

Commit

Permalink
Merge pull request #22 from uw-it-aca/fix/card-comp
Browse files Browse the repository at this point in the history
Hotfix card comp.
  • Loading branch information
charlon authored Apr 13, 2022
2 parents 37f42e0 + 919f655 commit ff6ca2e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/_components/card/card.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
>
<slot name="heading-action"></slot>
</div>
<div class="card-body p-4">
<slot></slot>
<div v-if="$slots['body']" class="card-body p-4">
<slot name="body"></slot>
</div>

<div v-if="$slots['footer']" class="card-footer bg-white px-4 py-3 small">
Expand Down
12 changes: 7 additions & 5 deletions src/docs/components/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@
<div class="axdd-font-open-sans" style="max-width: 75%">
<CodeBlock>
<template #preview>
<axdd-card>card body</axdd-card>
<axdd-card>
<template #body>card body</template>
</axdd-card>
</template>
<template #code>
<pre class="language-html rounded">
Expand All @@ -40,7 +42,7 @@
<template #heading>
<axdd-card-heading :level="3">Heading</axdd-card-heading>
</template>
card body
<template #body>card body</template>
</axdd-card>
</template>
<template #code>
Expand Down Expand Up @@ -71,7 +73,7 @@
>
</axdd-card-action>
</template>
card body
<template #body>card body</template>
</axdd-card>
</template>
<template #code>
Expand Down Expand Up @@ -114,7 +116,7 @@
</div>
</axdd-card-action>
</template>
card body
<template #body>card body</template>
</axdd-card>
</template>
<template #code>
Expand All @@ -140,7 +142,7 @@
<template #heading>
<axdd-card-heading :level="9">Heading</axdd-card-heading>
</template>
card body
<template #body>card body</template>
<template #footer> this is the footer </template>
</axdd-card>
</template>
Expand Down

0 comments on commit ff6ca2e

Please sign in to comment.