From 61b482528bb91c34e3cdca79580034e88d34560b Mon Sep 17 00:00:00 2001 From: Dylan <99700808+dylankilgore@users.noreply.github.com> Date: Mon, 4 Apr 2022 16:35:22 -0700 Subject: [PATCH] fix: html base pixel unit: changes the base from 16 to 10 (#34) Match the pixel base of vscode --- src/components/Button/BaseButton.tsx | 2 +- src/components/Button/button.module.scss | 7 +- .../ConfigProvider/ConfigProvider.stories.tsx | 9 +- src/components/Icon/Icon.stories.tsx | 16 ++- src/components/Icon/Icon.types.ts | 8 +- src/components/Pills/Pill.tsx | 24 +++- src/components/Pills/pills.module.scss | 27 ++-- src/components/Tabs/tabs.module.scss | 1 + src/components/Tooltip/tooltip.module.scss | 1 + src/styles/abstracts/_functions.scss | 104 ++++++++++++++- src/styles/abstracts/_mixins.scss | 120 ------------------ 11 files changed, 156 insertions(+), 163 deletions(-) diff --git a/src/components/Button/BaseButton.tsx b/src/components/Button/BaseButton.tsx index afe43450e..4c680d96f 100644 --- a/src/components/Button/BaseButton.tsx +++ b/src/components/Button/BaseButton.tsx @@ -157,7 +157,7 @@ export const BaseButton: FC = ({ > {iconExists && !textExists && getButtonIcon(icon)} {iconExists && textExists && ( - + {getButtonIcon(icon)} {getButtonText(buttonTextClassNames, text)} diff --git a/src/components/Button/button.module.scss b/src/components/Button/button.module.scss index 3b046acab..a64ac03aa 100644 --- a/src/components/Button/button.module.scss +++ b/src/components/Button/button.module.scss @@ -1,12 +1,17 @@ .button { background-color: inherit; border: rem(2px) solid $button-color-default-active; + border-radius: $corner-radius-s; cursor: pointer; display: inline-block; transition: all $motion-duration-extra-fast $motion-easing-easeinout 0s; white-space: nowrap; - border-radius: $corner-radius-s; + span { + display: flex; + flex-direction: row; + align-items: center; + } .icon + .button1:not(:empty) { margin-left: $button-spacer-large; diff --git a/src/components/ConfigProvider/ConfigProvider.stories.tsx b/src/components/ConfigProvider/ConfigProvider.stories.tsx index 8925d907e..9bd3b4c4f 100644 --- a/src/components/ConfigProvider/ConfigProvider.stories.tsx +++ b/src/components/ConfigProvider/ConfigProvider.stories.tsx @@ -44,7 +44,7 @@ const ThemedComponents = () => { return ( <> -

+

Selected Theme: { > {themeOptions.name} -

+
-

Predefined

+

Predefined