From 44614dba9d713ea0784f08f42358d71cc172a2d4 Mon Sep 17 00:00:00 2001 From: akcodez Date: Tue, 2 Dec 2025 12:40:27 -0800 Subject: [PATCH] Refactor Button Styles for Responsive Design Updated button styles to enhance responsiveness across devices by replacing fixed breakpoints with a mixin for the xl breakpoint. Adjusted typography and padding for smaller screens to ensure consistent appearance and usability. Improved comments for clarity on the import order and design tokens. --- shared/components/Button/Button.scss | 43 +++++++++++++++++++--------- static/css/devportal2024-v1.css | 23 ++++++++++----- styles/_breakpoints.scss | 10 +++++++ styles/xrpl.scss | 8 +----- 4 files changed, 56 insertions(+), 28 deletions(-) create mode 100644 styles/_breakpoints.scss diff --git a/shared/components/Button/Button.scss b/shared/components/Button/Button.scss index 8392327aa0..fa00a3e9f4 100644 --- a/shared/components/Button/Button.scss +++ b/shared/components/Button/Button.scss @@ -12,8 +12,9 @@ // .bds-btn__icon - Icon element (inherits color via currentColor) // .bds-btn--disabled - Disabled state modifier // .bds-btn--no-icon - No icon modifier - -@import "../../../styles/colors"; +// +// Note: This file is imported within xrpl.scss after Bootstrap and project +// variables are loaded, so $grid-breakpoints, colors, and mixins are available. // ============================================================================= // Design Tokens @@ -188,6 +189,15 @@ $bds-btn-transition-timing: cubic-bezier(0.98, 0.12, 0.12, 0.98); transform: scaleX(0); } } + + // --------------------------------------------------------------------------- + // Responsive Typography (