Skip to content

Commit

Permalink
deprecate hero card
Browse files Browse the repository at this point in the history
  • Loading branch information
Haberkamp committed Sep 12, 2024
1 parent 307439b commit d0185b6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/rich-fireants-attend.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@shopware-ag/meteor-component-library": patch
---

Deprecate hero card
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ export default defineComponent({
/**
* Renders the card as a hero card without styling
* @deprecated v4.0.0 - will be removed without replacement
*/
hero: {
type: Boolean,
Expand Down Expand Up @@ -193,6 +194,7 @@ export default defineComponent({
const cardClasses = computed(() => ({
"mt-card--grid": !!slots.grid,
// @deprecated v4.0.0 - will be removed without replacement
"mt-card--hero": !!props.hero,
"mt-card--large": props.large,
"mt-card--has-footer": !!slots.footer,
Expand Down Expand Up @@ -238,6 +240,7 @@ export default defineComponent({
border: 1px solid var(--color-border-primary-default);
overflow: hidden;
/* @deprecated v4.0.0 */
&:not(.mt-card--hero) {
border-radius: var(--border-radius-card);
}
Expand Down Expand Up @@ -297,6 +300,7 @@ export default defineComponent({
}
}
/* @deprecated v4.0.0 */
.mt-card--hero {
& .mt-card__content {
background: none;
Expand Down

0 comments on commit d0185b6

Please sign in to comment.