Skip to content

Commit

Permalink
make variables for button heights
Browse files Browse the repository at this point in the history
  • Loading branch information
josephkmh committed Jan 31, 2023
1 parent 5dcaf69 commit aeb9344
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
@use "scss/variables";

.inProgressLabel {
height: 32px; /** Needs to match our Button height to avoid jumping around */
height: variables.$buttonHeightSm;
display: flex;
align-items: center;
}
6 changes: 3 additions & 3 deletions airbyte-webapp/src/components/ui/Button/Button.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
}

&.sizeXS {
height: 32px;
height: variables.$buttonHeightXs;
font-size: 12px;
line-height: 15px;
padding: 10px;
Expand All @@ -117,7 +117,7 @@
}

&.sizeS {
height: 36px;
height: variables.$buttonHeightSm;
font-size: 12px;
line-height: 15px;
padding: 10px 14px;
Expand All @@ -128,7 +128,7 @@
}

&.sizeL {
height: 44px;
height: variables.$buttonHeightLg;
font-size: 16px;
line-height: 19px;
padding: 10px 14px;
Expand Down
4 changes: 4 additions & 0 deletions airbyte-webapp/src/scss/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,7 @@ $width-modal-sm: 492px;
$width-modal-md: 585px;
$width-modal-lg: 940px;
$width-modal-xl: 1008px;

$buttonHeightXs: 32px;
$buttonHeightSm: 36px;
$buttonHeightLg: 44px;

0 comments on commit aeb9344

Please sign in to comment.