Skip to content

Commit a0a7d22

Browse files
committed
feat: add rounded button
1 parent d1e6090 commit a0a7d22

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/components/atoms/card/card.vue

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
[`h-card--color-${color}`]: color,
77
[`h-card--variant-${variant}`]: variant,
88
[`h-card--elevation-${elevation}`]: elevation && variant != 'outlined',
9+
[`h-card--behavior-rounded`]: rounded,
910
}"
1011
>
1112
<slot />
@@ -42,6 +43,10 @@ export default {
4243
type: String,
4344
default: 'default',
4445
},
46+
rounded: {
47+
type: Boolean,
48+
default: true,
49+
},
4550
},
4651
};
4752
</script>
@@ -65,6 +70,12 @@ export default {
6570
padding: var(--h-card--padding);
6671
position: relative;
6772
73+
&--behavior {
74+
&-rounded {
75+
--h-card--border-radius: var(--border-radius-high);
76+
}
77+
}
78+
6879
&--variant {
6980
&-outlined {
7081
--h-card--border: var(--size-base-micro) solid var(--color-grey-scale-400);

0 commit comments

Comments
 (0)