Skip to content

Commit e2a3bb8

Browse files
chore(card): fix isQuiet controls and usage in template
1 parent eafa70e commit e2a3bb8

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

components/card/stories/card.stories.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,7 @@ export default {
2323
},
2424
control: { type: "file", accept: ".svg,.png,.jpg,.jpeg,.webc" },
2525
},
26-
isQuiet: {
27-
...isQuiet,
28-
description: "`showAsset` must be defined to properly render the quiet styles.",
29-
if: { arg: "showAsset", truthy: true },
30-
},
26+
isQuiet,
3127
isSelected,
3228
isFocused,
3329
hasActions: {

components/card/stories/template.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export const Template = ({
6565
>
6666
${when(image || showAsset, () =>
6767
when(
68-
showAsset || (isGallery && image),
68+
showAsset || (isGallery && image) || isQuiet,
6969
() => html`
7070
<div
7171
class=${classMap({

0 commit comments

Comments
 (0)