-
Notifications
You must be signed in to change notification settings - Fork 839
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
[EuiButtonIcon] Add isLoading prop to match EuiButton #5649
Comments
Thanks, @p-young for opening this issue. The use case sounds good and we are going to consider it. I have one suggestion for your workaround. Instead of using a EuiButton with an icon, you can use instead a EuiLoadingSpinner: https://codesandbox.io/s/euibuttonicon-loading-0ffczp?file=/demo.js:378-395. |
To introduce a EuiButtonIcon
But I have some a11y questions.
So when the EuiButtonIcon |
@miukimiu & @cchaos I've been thinking about this for a bit. I think EuiButtonIcon With that said, I think it would benefit us to review our disabled button pattern for all buttons and look at the effort to move to a |
This is a feature request to allow EuiButtonIcon to also have a loading state "isLoading" like EuiButton does.
The use case is for example a chat submit button, which needs to be put into a loading state after submission.
A workaround is to use EuiButton with an icon and manually change the margins to make it look like an EuiButtonIcon, but I think it would be nice to have EuiButtonIcon directly do it.
Thanks!
The text was updated successfully, but these errors were encountered: