shopware / meteor

Meteor is Shopware’s open-source design system that drives our commerce solutions. Extend and customise every aspect of Shopware – create elegant, delightful, and accessible experiences. There are no limits to your imagination.
https://shopware.design
MIT License
18 stars 3 forks source link

add future flag to remove card max width #288

Closed Haberkamp closed 1 day ago

Haberkamp commented 1 week ago

What?

I've added a new future flag to toggle the max-width behavior of cards.

Why?

The max width of the card component has been deprecated. To enable an easier transition to the new behavior people are able to switch to the new behavior before we make the breaking change.

How?

I've added a new future flag.

The project can decide wether they want to adapt the new feature early or not.

To do that they need to add the mt-theme-provider component and enable the removeCardWidth flag like this:

<template>
  <mt-theme-provider :future="{ removeCardWidth: true }">
    <!-- Your content -->
  </mt-theme-provider>
</template>

Anything Else?

By default the old behavior is applied, but you can decide to change it by editing the them config via the mt-theme-provider component

vercel[bot] commented 1 week ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
meteor-admin-sdk-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 18, 2024 11:56am
1 Skipped Deployment | Name | Status | Preview | Comments | Updated (UTC) | | :--- | :----- | :------ | :------- | :------ | | **meteor-component-library** | ⬜️ Ignored ([Inspect](https://vercel.com/shopware-frontends/meteor-component-library/DyAuDbAgeTrNyUtinhq92J7n3G8j)) | [Visit Preview](https://meteor-component-library-git-add-futu-2947a1-shopware-frontends.vercel.app) | | Sep 18, 2024 11:56am |
pkg-pr-new[bot] commented 1 day ago

Open in Stackblitz

pnpm add https://pkg.pr.new/shopware/meteor/@shopware-ag/meteor-admin-sdk@288
pnpm add https://pkg.pr.new/shopware/meteor/@shopware-ag/meteor-component-library@288
pnpm add https://pkg.pr.new/shopware/meteor/@shopware-ag/meteor-icon-kit@288
pnpm add https://pkg.pr.new/shopware/meteor/@shopware-ag/meteor-tokens@288

commit: 8cbbd04