diff --git a/.changeset/dry-melons-bake.md b/.changeset/dry-melons-bake.md new file mode 100644 index 0000000000..b78521fb3b --- /dev/null +++ b/.changeset/dry-melons-bake.md @@ -0,0 +1,5 @@ +--- +"@sumup-oss/design-tokens": minor +--- + +Updated several typography token values and replaced the component-specific letter spacing tokens with a unified one. diff --git a/.changeset/lazy-icons-beg.md b/.changeset/lazy-icons-beg.md new file mode 100644 index 0000000000..9de311d95f --- /dev/null +++ b/.changeset/lazy-icons-beg.md @@ -0,0 +1,8 @@ +--- +"@sumup-oss/stylelint-plugin-circuit-ui": minor +"@sumup-oss/eslint-plugin-circuit-ui": minor +"@sumup-oss/circuit-ui": minor +"@sumup-oss/design-tokens": minor +--- + +Updated new typography design tokens names by removing the `-typography` infix. diff --git a/.changeset/shiny-pumpkins-jog.md b/.changeset/shiny-pumpkins-jog.md new file mode 100644 index 0000000000..708824fc4e --- /dev/null +++ b/.changeset/shiny-pumpkins-jog.md @@ -0,0 +1,6 @@ +--- +"@sumup-oss/eslint-plugin-circuit-ui": minor +"@sumup-oss/circuit-ui": minor +--- + +Introduced new sizes to the List component and deprecated old sizes. Updated `no-renamed-props` ESlint rule. diff --git a/.storybook/components/Theme.tsx b/.storybook/components/Theme.tsx index d861679f37..4e03facd15 100644 --- a/.storybook/components/Theme.tsx +++ b/.storybook/components/Theme.tsx @@ -41,9 +41,12 @@ type CustomProperties = CustomProperty[]; type PreviewProps = { name: CustomPropertyName }; type PreviewComponent = ComponentType; -function filterCustomProperties(namespace: string, type?: string) { +function filterCustomProperties(namespace: string | string[], type?: string) { return schema.filter((token) => { - const isNamespace = token.name.startsWith(`--cui-${namespace}`); + const isNamespace = + typeof namespace === 'string' + ? token.name.startsWith(`--cui-${namespace}`) + : namespace.some((ns) => token.name.startsWith(`--cui-${ns}`)); const isType = type ? token.type === type : true; return isNamespace && isType; }); @@ -79,8 +82,17 @@ function getRows( { children: (
- {name} - + + {name} + + {!deprecation && } {deprecation && ( + ## Font stack @@ -73,7 +82,7 @@ Avoid using the `var(--cui-typography-*)` CSS custom properties directly in your -Pass `variant="highlight"` to the `Body` component to make it bold. The font weight of the `Title`, `Headline` and `SubHeadline` components is bold by default and should not be overwritten. +Pass the `weight` prop to the `Body` component to adjust its font-weight styling. The font weight of the `Display`, `Headline` and the `Numeral` components is bold by default and should not be overwritten. ## Transitions diff --git a/packages/circuit-ui/components/Badge/Badge.module.css b/packages/circuit-ui/components/Badge/Badge.module.css index c33329cd2c..90edd749b6 100644 --- a/packages/circuit-ui/components/Badge/Badge.module.css +++ b/packages/circuit-ui/components/Badge/Badge.module.css @@ -1,9 +1,9 @@ .base { display: inline-block; padding: 2px var(--cui-spacings-byte); - font-size: var(--cui-typography-body-s-font-size); + font-size: var(--cui-body-s-font-size); font-weight: var(--cui-font-weight-bold); - line-height: var(--cui-typography-body-s-line-height); + line-height: var(--cui-body-s-line-height); text-align: center; letter-spacing: 0.25px; border-radius: var(--cui-border-radius-pill); diff --git a/packages/circuit-ui/components/Body/Body.module.css b/packages/circuit-ui/components/Body/Body.module.css index 3b78208a1e..9eeb9431ff 100644 --- a/packages/circuit-ui/components/Body/Body.module.css +++ b/packages/circuit-ui/components/Body/Body.module.css @@ -1,21 +1,22 @@ +.base { + letter-spacing: var(--cui-letter-spacing); +} + /* Sizes */ .l { - font-size: var(--cui-typography-body-l-font-size); - line-height: var(--cui-typography-body-l-line-height); - letter-spacing: var(--cui-typography-body-l-letter-spacing); + font-size: var(--cui-body-l-font-size); + line-height: var(--cui-body-l-line-height); } .m { - font-size: var(--cui-typography-body-m-font-size); - line-height: var(--cui-typography-body-m-line-height); - letter-spacing: var(--cui-typography-body-m-letter-spacing); + font-size: var(--cui-body-m-font-size); + line-height: var(--cui-body-m-line-height); } .s { - font-size: var(--cui-typography-body-s-font-size); - line-height: var(--cui-typography-body-s-line-height); - letter-spacing: var(--cui-typography-body-s-letter-spacing); + font-size: var(--cui-body-s-font-size); + line-height: var(--cui-body-s-line-height); } /* Weights */ diff --git a/packages/circuit-ui/components/Body/Body.tsx b/packages/circuit-ui/components/Body/Body.tsx index 67a89b47f2..13b1f51904 100644 --- a/packages/circuit-ui/components/Body/Body.tsx +++ b/packages/circuit-ui/components/Body/Body.tsx @@ -89,7 +89,7 @@ function getHTMLElement(variant?: Variant): AsPropType { return 'p'; } -const deprecatedSizeMap: Record = { +export const deprecatedSizeMap: Record = { 'one': 'm', 'two': 's', }; @@ -152,6 +152,7 @@ export const Body = forwardRef( {...props} ref={ref} className={clsx( + classes.base, classes[size], classes[weight], classes[color], diff --git a/packages/circuit-ui/components/Button/base.module.css b/packages/circuit-ui/components/Button/base.module.css index 4320581beb..c36f133904 100644 --- a/packages/circuit-ui/components/Button/base.module.css +++ b/packages/circuit-ui/components/Button/base.module.css @@ -6,7 +6,7 @@ width: auto; height: auto; margin: 0; - font-size: var(--cui-typography-body-m-font-size); + font-size: var(--cui-body-m-font-size); font-weight: var(--cui-font-weight-bold); text-align: center; text-decoration: none; @@ -165,8 +165,8 @@ --loader-gap: 3px; --loader-transform: scale(150%); - font-size: var(--cui-typography-body-s-font-size); - line-height: var(--cui-typography-body-s-line-height); + font-size: var(--cui-body-s-font-size); + line-height: var(--cui-body-s-line-height); border-radius: var(--cui-border-radius-byte); } @@ -177,8 +177,8 @@ --loader-gap: 5px; --loader-transform: scale(133%); - font-size: var(--cui-typography-body-m-font-size); - line-height: var(--cui-typography-body-m-line-height); + font-size: var(--cui-body-m-font-size); + line-height: var(--cui-body-m-line-height); border-radius: var(--cui-border-radius-byte); } diff --git a/packages/circuit-ui/components/Calendar/Calendar.module.css b/packages/circuit-ui/components/Calendar/Calendar.module.css index c0ab955545..caa581146d 100644 --- a/packages/circuit-ui/components/Calendar/Calendar.module.css +++ b/packages/circuit-ui/components/Calendar/Calendar.module.css @@ -80,9 +80,9 @@ align-items: center; justify-content: center; aspect-ratio: 1 / 1; - font-size: var(--cui-typography-body-m-font-size); + font-size: var(--cui-body-m-font-size); font-weight: var(--cui-font-weight-bold); - line-height: var(--cui-typography-body-m-line-height); + line-height: var(--cui-body-m-line-height); } .day { @@ -90,9 +90,9 @@ height: 100%; aspect-ratio: 1 / 1; padding: 0; - font-size: var(--cui-typography-body-m-font-size); + font-size: var(--cui-body-m-font-size); font-variant-numeric: tabular-nums; - line-height: var(--cui-typography-body-m-line-height); + line-height: var(--cui-body-m-line-height); color: var(--cui-fg-normal); touch-action: manipulation; cursor: pointer; diff --git a/packages/circuit-ui/components/Carousel/components/Status/Status.module.css b/packages/circuit-ui/components/Carousel/components/Status/Status.module.css index d0e1b5726c..39da1f6761 100644 --- a/packages/circuit-ui/components/Carousel/components/Status/Status.module.css +++ b/packages/circuit-ui/components/Carousel/components/Status/Status.module.css @@ -1,6 +1,6 @@ @media (max-width: 479px) { .base { - font-size: var(--cui-typography-body-s-font-size); - line-height: var(--cui-typography-body-s-line-height); + font-size: var(--cui-body-s-font-size); + line-height: var(--cui-body-s-line-height); } } diff --git a/packages/circuit-ui/components/Checkbox/Checkbox.module.css b/packages/circuit-ui/components/Checkbox/Checkbox.module.css index 1d489d1e1b..ee7d88ff16 100644 --- a/packages/circuit-ui/components/Checkbox/Checkbox.module.css +++ b/packages/circuit-ui/components/Checkbox/Checkbox.module.css @@ -9,7 +9,7 @@ .base + .label::before { position: absolute; - top: calc(var(--cui-typography-body-m-line-height) / 2); + top: calc(var(--cui-body-m-line-height) / 2); left: 0; box-sizing: border-box; display: block; diff --git a/packages/circuit-ui/components/Checkbox/Checkbox.stories.tsx b/packages/circuit-ui/components/Checkbox/Checkbox.stories.tsx index c4229427ef..478f2c52d7 100644 --- a/packages/circuit-ui/components/Checkbox/Checkbox.stories.tsx +++ b/packages/circuit-ui/components/Checkbox/Checkbox.stories.tsx @@ -107,8 +107,8 @@ export const Indeterminate = (args: { style={{ display: 'block', marginBottom: 'var(--cui-spacings-bit)', - fontSize: 'var(--cui-typography-body-s-font-size)', - lineHeight: 'var(--cui-typography-body-s-line-height)', + fontSize: 'var(--cui-body-s-font-size)', + lineHeight: 'var(--cui-body-s-line-height)', }} > {label} diff --git a/packages/circuit-ui/components/Compact/Compact.module.css b/packages/circuit-ui/components/Compact/Compact.module.css index 02ccf82f40..71105c932b 100644 --- a/packages/circuit-ui/components/Compact/Compact.module.css +++ b/packages/circuit-ui/components/Compact/Compact.module.css @@ -1,21 +1,22 @@ +.base { + letter-spacing: var(--cui-letter-spacing); +} + /* Sizes */ .l { - font-size: var(--cui-typography-compact-l-font-size); - line-height: var(--cui-typography-compact-l-line-height); - letter-spacing: var(--cui-typography-compact-l-letter-spacing); + font-size: var(--cui-compact-l-font-size); + line-height: var(--cui-compact-l-line-height); } .m { - font-size: var(--cui-typography-compact-m-font-size); - line-height: var(--cui-typography-compact-m-line-height); - letter-spacing: var(--cui-typography-compact-m-letter-spacing); + font-size: var(--cui-compact-m-font-size); + line-height: var(--cui-compact-m-line-height); } .s { - font-size: var(--cui-typography-compact-s-font-size); - line-height: var(--cui-typography-compact-s-line-height); - letter-spacing: var(--cui-typography-compact-s-letter-spacing); + font-size: var(--cui-compact-s-font-size); + line-height: var(--cui-compact-s-line-height); } /* Weights */ diff --git a/packages/circuit-ui/components/Compact/Compact.tsx b/packages/circuit-ui/components/Compact/Compact.tsx index c78a997a5e..6357ebea66 100644 --- a/packages/circuit-ui/components/Compact/Compact.tsx +++ b/packages/circuit-ui/components/Compact/Compact.tsx @@ -69,6 +69,7 @@ export const Compact = forwardRef( {...props} ref={ref} className={clsx( + classes.base, classes[size], classes[weight], classes[color], diff --git a/packages/circuit-ui/components/Display/Display.module.css b/packages/circuit-ui/components/Display/Display.module.css index 2e589a0762..10d9ec0757 100644 --- a/packages/circuit-ui/components/Display/Display.module.css +++ b/packages/circuit-ui/components/Display/Display.module.css @@ -1,25 +1,22 @@ .base { font-weight: var(--cui-font-weight-bold); color: var(--cui-fg-normal); - letter-spacing: -0.03em; + letter-spacing: var(--cui-letter-spacing); } /* Sizes */ .l { - font-size: var(--cui-typography-display-l-font-size); - line-height: var(--cui-typography-display-l-line-height); - letter-spacing: var(--cui-typography-display-l-letter-spacing); + font-size: var(--cui-display-l-font-size); + line-height: var(--cui-display-l-line-height); } .m { - font-size: var(--cui-typography-display-m-font-size); - line-height: var(--cui-typography-display-m-line-height); - letter-spacing: var(--cui-typography-display-m-letter-spacing); + font-size: var(--cui-display-m-font-size); + line-height: var(--cui-display-m-line-height); } .s { - font-size: var(--cui-typography-display-s-font-size); - line-height: var(--cui-typography-display-s-line-height); - letter-spacing: var(--cui-typography-display-s-letter-spacing); + font-size: var(--cui-display-s-font-size); + line-height: var(--cui-display-s-line-height); } diff --git a/packages/circuit-ui/components/Field/Field.module.css b/packages/circuit-ui/components/Field/Field.module.css index 058cf3f34b..c5b3fce0ed 100644 --- a/packages/circuit-ui/components/Field/Field.module.css +++ b/packages/circuit-ui/components/Field/Field.module.css @@ -8,8 +8,8 @@ .label, .legend { display: block; - font-size: var(--cui-typography-body-s-font-size); - line-height: var(--cui-typography-body-s-line-height); + font-size: var(--cui-body-s-font-size); + line-height: var(--cui-body-s-line-height); } .label-text { @@ -33,8 +33,8 @@ .description { display: block; - font-size: var(--cui-typography-body-s-font-size); - line-height: var(--cui-typography-body-s-line-height); + font-size: var(--cui-body-s-font-size); + line-height: var(--cui-body-s-line-height); color: var(--cui-fg-subtle); } @@ -46,8 +46,8 @@ .validation-hint { display: flex; margin-top: var(--cui-spacings-bit); - font-size: var(--cui-typography-body-s-font-size); - line-height: var(--cui-typography-body-s-line-height); + font-size: var(--cui-body-s-font-size); + line-height: var(--cui-body-s-line-height); color: var(--cui-fg-subtle); transition: color var(--cui-transitions-default); } @@ -91,7 +91,7 @@ width: var(--cui-icon-sizes-kilo); height: var(--cui-icon-sizes-kilo); margin-top: calc( - (var(--cui-typography-body-s-line-height) - var(--cui-icon-sizes-kilo)) / 2 + (var(--cui-body-s-line-height) - var(--cui-icon-sizes-kilo)) / 2 ); margin-right: var(--cui-spacings-bit); } diff --git a/packages/circuit-ui/components/Headline/Headline.module.css b/packages/circuit-ui/components/Headline/Headline.module.css index a890f773bc..a8d8256878 100644 --- a/packages/circuit-ui/components/Headline/Headline.module.css +++ b/packages/circuit-ui/components/Headline/Headline.module.css @@ -1,25 +1,22 @@ .base { font-weight: var(--cui-font-weight-bold); color: var(--cui-fg-normal); - letter-spacing: -0.03em; + letter-spacing: var(--cui-letter-spacing); } /* Sizes */ .l { - font-size: var(--cui-typography-headline-l-font-size); - line-height: var(--cui-typography-headline-l-line-height); - letter-spacing: var(--cui-typography-headline-l-letter-spacing); + font-size: var(--cui-headline-l-font-size); + line-height: var(--cui-headline-l-line-height); } .m { - font-size: var(--cui-typography-headline-m-font-size); - line-height: var(--cui-typography-headline-m-line-height); - letter-spacing: var(--cui-typography-headline-m-letter-spacing); + font-size: var(--cui-headline-m-font-size); + line-height: var(--cui-headline-m-line-height); } .s { - font-size: var(--cui-typography-headline-s-font-size); - line-height: var(--cui-typography-headline-s-line-height); - letter-spacing: var(--cui-typography-headline-s-letter-spacing); + font-size: var(--cui-headline-s-font-size); + line-height: var(--cui-headline-s-line-height); } diff --git a/packages/circuit-ui/components/Input/Input.module.css b/packages/circuit-ui/components/Input/Input.module.css index fe7abf9c29..4358f4317b 100644 --- a/packages/circuit-ui/components/Input/Input.module.css +++ b/packages/circuit-ui/components/Input/Input.module.css @@ -6,8 +6,8 @@ width: 100%; padding: var(--cui-spacings-kilo) var(--cui-spacings-mega); margin: 0; - font-size: var(--cui-typography-body-m-font-size); - line-height: var(--cui-typography-body-m-line-height); + font-size: var(--cui-body-m-font-size); + line-height: var(--cui-body-m-line-height); appearance: none; background-color: var(--cui-bg-normal); border: none; diff --git a/packages/circuit-ui/components/List/List.mdx b/packages/circuit-ui/components/List/List.mdx index 54d4f3ca3e..88ed57da2c 100644 --- a/packages/circuit-ui/components/List/List.mdx +++ b/packages/circuit-ui/components/List/List.mdx @@ -25,7 +25,8 @@ The List component comes in two variants, `ordered` or `unordered`. ### Sizes -The List component has two available sizes, `one` and `two`, matching the [`Body` component](Typography/Body)'s sizes. + +The List component has three available sizes, `s`, `m` and `l`, matching the [`Body` component](Typography/Body)'s sizes. For consistency, the list's size should be the same as the surrounding content's size. diff --git a/packages/circuit-ui/components/List/List.module.css b/packages/circuit-ui/components/List/List.module.css index 1334d18211..976bbdd709 100644 --- a/packages/circuit-ui/components/List/List.module.css +++ b/packages/circuit-ui/components/List/List.module.css @@ -4,54 +4,80 @@ /* Sizes */ -.one { +.l { padding-left: var(--cui-spacings-kilo); - font-size: var(--cui-typography-body-m-font-size); - line-height: var(--cui-typography-body-m-line-height); + font-size: var(--cui-body-l-font-size); + line-height: var(--cui-body-l-line-height); } -.one li { +.l li { + margin-bottom: var(--cui-spacings-kilo); + margin-left: var(--cui-spacings-mega); +} + +.l li:last-child { + margin-bottom: 0; +} + +.l ul, +.l ol { + margin-bottom: var(--cui-spacings-byte); + margin-left: var(--cui-spacings-kilo); +} + +.l ul:last-child, +.l ol:last-child { + margin-bottom: 0; +} + +.m { + padding-left: var(--cui-spacings-kilo); + font-size: var(--cui-body-m-font-size); + line-height: var(--cui-body-m-line-height); +} + +.m li { margin-bottom: var(--cui-spacings-byte); margin-left: var(--cui-spacings-kilo); } -.one li:last-child { +.m li:last-child { margin-bottom: 0; } -.one ul, -.one ol { +.m ul, +.m ol { margin-bottom: var(--cui-spacings-byte); margin-left: var(--cui-spacings-kilo); } -.one ul:last-child, -.one ol:last-child { +.m ul:last-child, +.m ol:last-child { margin-bottom: 0; } -.two { +.s { padding-left: var(--cui-spacings-kilo); - font-size: var(--cui-typography-body-s-font-size); - line-height: var(--cui-typography-body-s-line-height); + font-size: var(--cui-body-s-font-size); + line-height: var(--cui-body-s-line-height); } -.two li { +.s li { margin-bottom: var(--cui-spacings-byte); margin-left: var(--cui-spacings-bit); } -.two li:last-child { +.s li:last-child { margin-bottom: 0; } -.two ul, -.two ol { +.s ul, +.s ol { margin-bottom: var(--cui-spacings-byte); margin-left: var(--cui-spacings-bit); } -.two ul:last-child, -.two ol:last-child { +.s ul:last-child, +.s ol:last-child { margin-bottom: 0; } diff --git a/packages/circuit-ui/components/List/List.stories.tsx b/packages/circuit-ui/components/List/List.stories.tsx index abf9e570b9..250ca7ffdd 100644 --- a/packages/circuit-ui/components/List/List.stories.tsx +++ b/packages/circuit-ui/components/List/List.stories.tsx @@ -49,7 +49,7 @@ export const Variants = (args: ListProps) => ( ); -const sizes: ListProps['size'][] = ['one', 'two']; +const sizes: ListProps['size'][] = ['l', 'm', 's']; export const Sizes = (args: ListProps) => ( diff --git a/packages/circuit-ui/components/List/List.tsx b/packages/circuit-ui/components/List/List.tsx index ad1df27da9..ac9c51e965 100644 --- a/packages/circuit-ui/components/List/List.tsx +++ b/packages/circuit-ui/components/List/List.tsx @@ -16,6 +16,9 @@ import { forwardRef, type OlHTMLAttributes } from 'react'; import { clsx } from '../../styles/clsx.js'; +import type { BodyProps } from '../Body/index.js'; +import { deprecatedSizeMap } from '../Body/Body.js'; +import { deprecate } from '../../util/logger.js'; import classes from './List.module.css'; @@ -23,7 +26,7 @@ export interface ListProps extends OlHTMLAttributes { /** * A Circuit UI Body size. Should match surrounding text. */ - size?: 'one' | 'two'; + size?: BodyProps['size']; /** * Whether the list should be presented as an ordered or unordered list. Defaults to `unordered`. */ @@ -34,8 +37,23 @@ export interface ListProps extends OlHTMLAttributes { * A list, which can be ordered or unordered. */ export const List = forwardRef( - ({ className, variant = 'unordered', size = 'one', ...props }, ref) => { + ( + { className, variant = 'unordered', size: legacySize = 'm', ...props }, + ref, + ) => { + if (process.env.NODE_ENV !== 'production') { + if (legacySize in deprecatedSizeMap) { + deprecate( + 'List', + `The "${legacySize}" size has been deprecated. Use the "${deprecatedSizeMap[legacySize]}" size instead.`, + ); + } + } const Element = variant === 'ordered' ? 'ol' : 'ul'; + const size = (deprecatedSizeMap[legacySize] || legacySize) as + | 'l' + | 'm' + | 's'; return ( Success

diff --git a/packages/eslint-plugin-circuit-ui/no-renamed-props/index.ts b/packages/eslint-plugin-circuit-ui/no-renamed-props/index.ts index b36978bcc3..01960f82c4 100644 --- a/packages/eslint-plugin-circuit-ui/no-renamed-props/index.ts +++ b/packages/eslint-plugin-circuit-ui/no-renamed-props/index.ts @@ -337,6 +337,15 @@ const configs: Config[] = [ two: 's', }, }, + { + type: 'values', + component: 'List', + prop: 'size', + values: { + one: 'm', + two: 's', + }, + }, { type: 'custom', component: 'Body', diff --git a/packages/stylelint-plugin-circuit-ui/no-deprecated-custom-properties/index.spec.ts b/packages/stylelint-plugin-circuit-ui/no-deprecated-custom-properties/index.spec.ts index 146bd41a8d..e888361fa1 100644 --- a/packages/stylelint-plugin-circuit-ui/no-deprecated-custom-properties/index.spec.ts +++ b/packages/stylelint-plugin-circuit-ui/no-deprecated-custom-properties/index.spec.ts @@ -29,13 +29,13 @@ testRule({ accept: [ { code: `.class { - font-size: var(--cui-typography-headline-l-font-size); + font-size: var(--cui-headline-l-font-size); }`, description: 'Allow valid custom properties', }, { code: `.class { - margin-bottom: calc(var(--cui-spacings-bit) - var(--cui-typography-headline-l-line-height)); + margin-bottom: calc(var(--cui-spacings-bit) - var(--cui-headline-l-line-height)); }`, description: 'Allow valid custom properties in complex style rules', }, @@ -47,12 +47,12 @@ testRule({ font-size: var(--cui-typography-headline-one-font-size); }`, fixed: `.class { - font-size: var(--cui-typography-headline-l-font-size); + font-size: var(--cui-headline-l-font-size); }`, description: 'Disallow deprecated custom properties', message: messages.deprecated( '--cui-typography-headline-one-font-size', - '--cui-typography-headline-l-font-size', + '--cui-headline-l-font-size', ), line: 2, column: 9, @@ -64,13 +64,13 @@ testRule({ margin-bottom: calc(var(--cui-spacings-bit) - var(--cui-typography-headline-one-line-height)); }`, fixed: `.class { - margin-bottom: calc(var(--cui-spacings-bit) - var(--cui-typography-headline-l-line-height)); + margin-bottom: calc(var(--cui-spacings-bit) - var(--cui-headline-l-line-height)); }`, description: 'Disallow deprecated custom properties in complex style rules', message: messages.deprecated( '--cui-typography-headline-one-line-height', - '--cui-typography-headline-l-line-height', + '--cui-headline-l-line-height', ), line: 2, column: 9, @@ -82,7 +82,7 @@ testRule({ margin-bottom: calc(var(--cui-spacings-bit) - var(--cui-typography-headline-one-line-height) - var(--cui-typography-headline-two-line-height)); }`, fixed: `.class { - margin-bottom: calc(var(--cui-spacings-bit) - var(--cui-typography-headline-l-line-height) - var(--cui-typography-headline-m-line-height)); + margin-bottom: calc(var(--cui-spacings-bit) - var(--cui-headline-l-line-height) - var(--cui-headline-m-line-height)); }`, description: 'Disallow multiple deprecated custom properties in complex style rules', @@ -90,7 +90,7 @@ testRule({ { message: messages.deprecated( '--cui-typography-headline-one-line-height', - '--cui-typography-headline-l-line-height', + '--cui-headline-l-line-height', ), line: 2, column: 9, @@ -100,7 +100,7 @@ testRule({ { message: messages.deprecated( '--cui-typography-headline-two-line-height', - '--cui-typography-headline-m-line-height', + '--cui-headline-m-line-height', ), line: 2, column: 9,