diff --git a/.changeset/angry-avocados-scream.md b/.changeset/angry-avocados-scream.md new file mode 100644 index 00000000000..70ac2019c7d --- /dev/null +++ b/.changeset/angry-avocados-scream.md @@ -0,0 +1,5 @@ +--- +'@shopify/polaris': minor +--- + +Removed default `Card` and `LegacyCard` bevel styles below sm breakpoint diff --git a/polaris-react/src/components/Card/Card.tsx b/polaris-react/src/components/Card/Card.tsx index 15191dd5fde..e3354c88eac 100644 --- a/polaris-react/src/components/Card/Card.tsx +++ b/polaris-react/src/components/Card/Card.tsx @@ -1,7 +1,6 @@ import type { BreakpointsAlias, ColorBackgroundAlias, - BorderRadiusAliasOrScale, SpaceScale, } from '@shopify/polaris-tokens'; import React from 'react'; @@ -40,15 +39,15 @@ export const Card = ({ roundedAbove = 'sm', }: CardProps) => { const breakpoints = useBreakpoints(); - const defaultBorderRadius: BorderRadiusAliasOrScale = '300'; - const hasBorderRadius = Boolean(breakpoints[`${roundedAbove}Up`]); + const hasBevel = Boolean(breakpoints[`${roundedAbove}Up`]); return (