From 6517e920ad910b15503010112a5d060c829d70bc Mon Sep 17 00:00:00 2001 From: Kirill Revenkov Date: Fri, 28 Jun 2024 14:12:18 +0300 Subject: [PATCH] feat: use common constants for card's radiuses --- src/components/Card/Card.scss | 4 ++-- styles/themes/common/_index.scss | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/Card/Card.scss b/src/components/Card/Card.scss index eb5ea5ff3d..916d08bbc7 100644 --- a/src/components/Card/Card.scss +++ b/src/components/Card/Card.scss @@ -157,11 +157,11 @@ $block: '.#{variables.$ns}card'; &_size { &_m { - --_--border-radius: 8px; + --_--border-radius: var(--g-border-radius-l); } &_l { - --_--border-radius: 16px; + --_--border-radius: var(--g-border-radius-xxl); } } } diff --git a/styles/themes/common/_index.scss b/styles/themes/common/_index.scss index ed4b2d4d91..bfd49262f3 100644 --- a/styles/themes/common/_index.scss +++ b/styles/themes/common/_index.scss @@ -12,6 +12,7 @@ --g-border-radius-m: 6px; --g-border-radius-l: 8px; --g-border-radius-xl: 10px; + --g-border-radius-xxl: 16px; --g-focus-border-radius: 2px;