Skip to content

Conversation

@aveline
Copy link
Contributor

@aveline aveline commented Sep 27, 2022

WHY are these changes introduced?

Based on conversation around Card #7195 (comment)

WHAT is this pull request doing?

Border radius on the AlphaCard component is now a boolean so a card can either have no border radius or a border radius of 2 from the border radius token scale.

No change to the responsive border radius behaviour, a card can switch from no border radius to border radius of 2 at a breakpoint that's passed in as a prop.

@github-actions
Copy link
Contributor

github-actions bot commented Sep 27, 2022

size-limit report 📦

Path Size
polaris-react-cjs 204.63 KB (+0.01% 🔺)
polaris-react-esm 131.07 KB (+0.01% 🔺)
polaris-react-esnext 186.23 KB (+0.01% 🔺)
polaris-react-css 41.36 KB (0%)

@laurkim
Copy link
Contributor

laurkim commented Sep 27, 2022

/snapit

@github-actions
Copy link
Contributor

🫰✨ Thanks @laurkim! Your snapshots have been published to npm.

Test the snapshots by updating your package.json with the newly published versions:

yarn add @shopify/[email protected]
yarn add @shopify/[email protected]
yarn add @shopify/[email protected]
yarn add @shopify/[email protected]
yarn add @shopify/[email protected]

Copy link
Contributor

@laurkim laurkim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice! 💯

Copy link
Contributor

@sarahill sarahill left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉 ✅

@aveline aveline merged commit c740d72 into layout-foundations-prototype Sep 28, 2022
@aveline aveline deleted the update-alpha-card branch September 28, 2022 16:11
laurkim pushed a commit that referenced this pull request Sep 30, 2022
### WHY are these changes introduced?

Based on conversation around `Card`
#7195 (comment)

### WHAT is this pull request doing?

Border radius on the `AlphaCard` component is now a boolean so a card
can either have no border radius or a border radius of `2` from the
border radius token scale.

No change to the responsive border radius behaviour, a card can switch
from no border radius to border radius of `2` at a breakpoint that's
passed in as a prop.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants