From 9fee659c23349beae7273a07a024bb55360c8677 Mon Sep 17 00:00:00 2001 From: PKulkoRaccoonGang Date: Tue, 7 Nov 2023 17:33:00 +0200 Subject: [PATCH] refactor: refactoring after review --- src/Button/README.md | 64 ++++++++++++++++++-------------------- src/Button/_variables.scss | 4 +-- 2 files changed, 33 insertions(+), 35 deletions(-) diff --git a/src/Button/README.md b/src/Button/README.md index d6e3af422c7..e3efff86895 100644 --- a/src/Button/README.md +++ b/src/Button/README.md @@ -22,11 +22,11 @@ This component utilizes `Button` from React-Bootstrap and extends it with an abi return ( - - - - - + + + + + )} ``` @@ -43,11 +43,11 @@ This component utilizes `Button` from React-Bootstrap and extends it with an abi gap={2} direction={ isExtraSmall ? "vertical" : "horizontal" } > - - - - - + + + + + )} ``` @@ -65,20 +65,20 @@ This component utilizes `Button` from React-Bootstrap and extends it with an abi gap={2} direction={ isExtraSmall ? "vertical" : "horizontal" } > - - - - + + + + - - - - - + + + + + )} @@ -134,13 +134,11 @@ This component utilizes `Button` from React-Bootstrap and extends it with an abi Use inline size buttons for when a button sits with a line of text. ```jsx live -<> -

- 2 items selected. - - -

- +

+ 2 items selected. + + +

``` ## Block Buttons @@ -189,8 +187,8 @@ For link to be `disabled`, it must have href defined with some value. gap={2} direction={ isExtraSmall ? "vertical" : "horizontal" } > - - + + ) } @@ -208,19 +206,19 @@ For link to be `disabled`, it must have href defined with some value. gap={2} direction={ isExtraSmall ? "vertical" : "horizontal" } > - - - - - diff --git a/src/Button/_variables.scss b/src/Button/_variables.scss index 5022877db9f..bdc2da5fced 100644 --- a/src/Button/_variables.scss +++ b/src/Button/_variables.scss @@ -48,5 +48,5 @@ $btn-focus-border-gap: $btn-focus-width + $btn-focus-gap !default; $btn-focus-distance-to-border: $btn-focus-border-gap + $btn-border-width !default; $btn-focus-border-radius: calc(#{$btn-border-radius} + #{$btn-focus-border-gap}) !default; -$btn-focus-border-radius-lg: $btn-focus-border-radius !default; -$btn-focus-border-radius-sm: $btn-border-radius !default; +$btn-focus-border-radius-lg: calc(#{$btn-border-radius-lg} + #{$btn-focus-border-gap}) !default; +$btn-focus-border-radius-sm: calc(#{$btn-border-radius-sm} + #{$btn-focus-border-gap}) !default;