-
Notifications
You must be signed in to change notification settings - Fork 841
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[EuiLoadingSpinner] Change s
-size to match EuiIcon
#5440
Conversation
xs
-sized button width jumping when icons switch to `isLoadingxs
-sized button width jumping when icons switch to isLoading
- widths would previously jump around due to the loading spinner being smaller than the icon
05c5cb0
to
8e06917
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My guess is we might more want to align the sizes of EuiLoadingSpinner to be the same sizes as our EuiIcon's. Can you do an audit of any other places in EUI that use this size of the loading spinner?
Preview documentation changes for this PR: https://eui.elastic.co/pr_5440/ |
LMK what you think about just changing |
Let's do it! We might want to call it a breaking change though, JIC someone was relying on that specific size. |
xs
-sized button width jumping when icons switch to isLoading
s
-sizing to match EuiIcon
Done! Tested in both Amsterdam and Legacy theme and the new size LGTM in both! |
s
-sizing to match EuiIcon
s
-size to match EuiIcon
Preview documentation changes for this PR: https://eui.elastic.co/pr_5440/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Preview documentation changes for this PR: https://eui.elastic.co/pr_5440/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🙌 UI and code LGTM! There seems to be something funky in CI with the new test.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just need to update the snapshot, otherwise LGTM!
Whoops, thanks y'all! Enabling auto-merge since it was just a snapshot/test name changing |
Preview documentation changes for this PR: https://eui.elastic.co/pr_5440/ |
Summary
isLoading
prop shifts overall size whensize="xs"
#5439xs
-sizedEuiButtonEmpty
s jumping in width when icons switch toisLoading
Before
After
Checklist
- [ ] Checked in mobile- [ ] Checked in Chrome, Safari, Edge, and Firefox- [ ] Props have proper autodocs and playground toggles- [ ] Added documentation- [ ] Checked Code Sandbox works for any docs examples- [ ] Added or updated jest and cypress tests- [ ] Checked for breaking changes and labeled appropriately- [ ] Checked for accessibility including keyboard-only and screenreader modes