Skip to content

Commit

Permalink
Renamed euiIconSizes to euiFormControlIconSizes and moved to form…
Browse files Browse the repository at this point in the history
… variables file
  • Loading branch information
elizabetdev committed Jun 28, 2022
1 parent 3b57233 commit 509b890
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 28 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
@import '../../icon/variables';

.euiFormControlLayout {
// Let the height expand as needed
@include euiFormControlSize($includeAlternates: true);

$iconSize: map-get($euiIconSizes, 'medium');
$iconSize: map-get($euiFormControlIconSizes, 'medium');
$iconPadding: $euiFormControlPadding;
$marginBetweenIcons: $euiFormControlPadding / 2;

Expand All @@ -16,7 +14,7 @@
padding-right: $iconPadding + ($iconSize + $marginBetweenIcons) * $i;

&[class*='compressed'] {
$iconSizeCompressed: map-get($euiIconSizes, 'small');
$iconSizeCompressed: map-get($euiFormControlIconSizes, 'small');
$iconPaddingCompressed: $euiFormControlCompressedPadding;

padding-right: $iconPaddingCompressed + ($iconSizeCompressed + $marginBetweenIcons) * $i;
Expand Down
24 changes: 0 additions & 24 deletions src/components/icon/_variables.scss

This file was deleted.

9 changes: 9 additions & 0 deletions src/global_styling/variables/_form.scss
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,15 @@ $euiFormInputGroupLabelBackground: tintOrShade($euiColorLightShade, 50%, 15%) !d
$euiFormInputGroupBorder: 1px solid shadeOrTint($euiFormInputGroupLabelBackground, 2%, 4%) !default;
$euiSwitchOffColor: lightOrDarkTheme(transparentize($euiColorMediumShade, .8), transparentize($euiColorMediumShade, .3)) !default;

// Icons sizes
$euiFormControlIconSizes: (
small: $euiSizeM,
medium: $euiSize,
large: $euiSizeL,
xLarge: $euiSizeXL,
xxLarge: $euiSizeXXL
);

// Control Layout
$euiFormControlLayoutGroupInputHeight: $euiFormControlHeight - 2px !default;
$euiFormControlLayoutGroupInputCompressedHeight: $euiFormControlCompressedHeight - 2px !default;
Expand Down

0 comments on commit 509b890

Please sign in to comment.