Skip to content

Commit

Permalink
Fix xs-sized isLoading EuiButtonEmpty with icons
Browse files Browse the repository at this point in the history
- widths would previously jump around due to the loading spinner being smaller than the icon
  • Loading branch information
cee-chen committed Dec 3, 2021
1 parent 611a18f commit 881277f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/components/button/button_empty/_button_empty.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@
&.euiButtonEmpty--xSmall {
height: $euiButtonHeightXSmall;
font-size: $euiFontSizeS;

// Forces the xs loading spinner to be the same size as xs-EuiIcons
.euiButtonContent__spinner {
width: $euiSizeM;
height: $euiSizeM;
}
}

&:disabled {
Expand Down

0 comments on commit 881277f

Please sign in to comment.