From efeecdcb3ad5fb16c1cdfa151e9237ada02163ba Mon Sep 17 00:00:00 2001 From: akcodez Date: Mon, 5 Jan 2026 12:44:14 -0800 Subject: [PATCH] Refactor button typography for responsiveness and consistency - Updated Button component styles to use responsive typography mixins for better adaptability across devices. - Removed redundant media queries and adjusted font sizes and line heights for both button types. - Ensured margin resets to maintain consistent spacing in various contexts. - Enhanced CSS for improved readability and maintainability. --- shared/components/Button/Button.scss | 33 +++++---------- static/css/devportal2024-v1.css | 63 +++++++++++++++++++++------- 2 files changed, 58 insertions(+), 38 deletions(-) diff --git a/shared/components/Button/Button.scss b/shared/components/Button/Button.scss index 45abfca658..43f3725103 100644 --- a/shared/components/Button/Button.scss +++ b/shared/components/Button/Button.scss @@ -616,13 +616,12 @@ html.dark { justify-content: center; max-height: 40px; - // Typography - Label R token - font-family: 'Booton', sans-serif; - font-size: 16px; - font-weight: 400; - line-height: 23.2px; - letter-spacing: 0px; + // Typography - Label R token (responsive) + // - Desktop (lg+): 16px / 23.2px + // - Mobile/Tablet: 14px / 20.1px + @include type(label-r); white-space: nowrap; + margin-bottom: 0; // Reset paragraph spacing from type mixin // Border border: none; @@ -715,14 +714,6 @@ html.dark { } } - // --------------------------------------------------------------------------- - // Responsive Typography (