1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 18:00:18 +01:00

Deprecation message has been added above @mixin H1 (#20500)

This commit is contained in:
Srirag 2023-08-18 22:24:12 +05:30 committed by GitHub
parent 8df77ed93d
commit 7f157cabf9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -111,6 +111,15 @@ $font-size-h9: map-get($typography-variants, 'h9');
font-weight: normal; font-weight: normal;
} }
/**
* @deprecated The typography mixins `@include H1` - `@include H9` have been deprecated in favor of the `<Text>` component from the component-library.
* Please update your code to use the `<Text>` component instead, which can be found in ui/components/component-library/text/text.tsx.
* You can find documentation for the new `<Text>` component in the MetaMask Storybook:
* {@link https://metamask.github.io/metamask-storybook/?path=/docs/components-componentlibrary-text--docs}
* If you would like to help with the replacement of the old mixins `@include H1` - `@include H9`, please submit a pull request against this GitHub issue:
* {@link https://github.com/MetaMask/metamask-extension/issues/19533}
*/
// Typography // Typography
@mixin H1 { @mixin H1 {
@include typography('h1'); @include typography('h1');