Skip to content

Commit

Permalink
Adding more paddings exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
elizabetdev committed Sep 8, 2020
1 parent 0143b44 commit cce3399
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions src/components/combo_box/_combo_box.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

/**
* 1. Allow pills to truncate their text with an ellipsis.
* 2. Don't allow pills to overlap with the caret or clear button.
* 2. Don't allow pills to overlap with the caret, loading icon or clear button.
* 3. The height on combo can be larger than normal text inputs.
*/

Expand Down Expand Up @@ -50,7 +50,11 @@
}

&.euiComboBox__inputWrap-isLoading {
@include euiFormControlLayoutPadding(3);
@include euiFormControlLayoutPadding(2); /* 2 */
}

&.euiComboBox__inputWrap-isLoading.euiComboBox__inputWrap-isClearable {
@include euiFormControlLayoutPadding(3); /* 2 */
}
}

Expand Down Expand Up @@ -114,6 +118,14 @@
&.euiComboBox__inputWrap-isClearable {
@include euiFormControlLayoutPadding(2, $compressed: true); /* 2 */
}

&.euiComboBox__inputWrap-isLoading {
@include euiFormControlLayoutPadding(2, $compressed: true); /* 2 */
}

&.euiComboBox__inputWrap-isLoading.euiComboBox__inputWrap-isClearable {
@include euiFormControlLayoutPadding(3, $compressed: true); /* 2 */
}
}
}
}

0 comments on commit cce3399

Please sign in to comment.