From ae7635051f6d354f2a54fef13cd4ec09d8bc35c1 Mon Sep 17 00:00:00 2001 From: Vadim73i <55870906+Vadim73i@users.noreply.github.com> Date: Thu, 1 Aug 2024 17:25:27 +0300 Subject: [PATCH] button width and modal header font fix (#32) --- src/components/button/button.module.scss | 1 + src/components/modal/modal.stories.tsx | 11 +++++++---- .../modal/modalHeader/modalHeader.module.scss | 1 + 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/src/components/button/button.module.scss b/src/components/button/button.module.scss index d11f6f5..b826785 100644 --- a/src/components/button/button.module.scss +++ b/src/components/button/button.module.scss @@ -6,6 +6,7 @@ justify-content: center; align-items: center; height: 36px; + min-width: 120px; padding: 7px 16px; margin: 0; outline: none; diff --git a/src/components/modal/modal.stories.tsx b/src/components/modal/modal.stories.tsx index 6544c13..9f9e90a 100644 --- a/src/components/modal/modal.stories.tsx +++ b/src/components/modal/modal.stories.tsx @@ -45,6 +45,7 @@ export const WithSteps: Story = { render: (args) => { // eslint-disable-next-line react-hooks/rules-of-hooks const [step, setStep] = useState(1); + const buttonStyle = { minWidth: 'fit-content' }; const CustomFooter: FC<{ closeHandler: () => void }> = ({ closeHandler }) => { return ( @@ -55,14 +56,16 @@ export const WithSteps: Story = { gap: 18, }} > - - - - + diff --git a/src/components/modal/modalHeader/modalHeader.module.scss b/src/components/modal/modalHeader/modalHeader.module.scss index 694625f..30cf96f 100644 --- a/src/components/modal/modalHeader/modalHeader.module.scss +++ b/src/components/modal/modalHeader/modalHeader.module.scss @@ -21,6 +21,7 @@ } .modal-title { + font-family: var(--rp-ui-base-font-family-heading); flex-grow: 1; vertical-align: middle; text-overflow: ellipsis;