-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Components: SelectControl - Add isLoading prop #21435
Conversation
Size Change: +138 B (0%) Total Size: 1.12 MB
ℹ️ View Unchanged
|
What is a good way to test this? |
heya @MichaelArestad ! Oh dear, my apologies! I should have included testing instructions.
That will toggle the state and the UI |
This looks good and works well. I added the "Needs Accessibility Feedback" label just to have someone take a look at that aspect of it. |
b2b4a14
to
03169ee
Compare
@ItsJonQ circling back on this PR as it came up in the weekly Editor Bug Scrub. Is there any reason that progress on this PR stopped? |
@ciampo and I discussed how to proceed with this PR, and we decided to close this out since the original problem that needed to be fixed (Parent Page selector) is no longer a It would be nice to have somewhat consistent loading states across the component library, but currently there is not enough product need to prioritize it. We'll close this for now and refer back to it when implementing a loading state for the ComboboxControl. Thanks! |
Description
This update adds the ability to render a loading state for the
SelectControl
(andTreeSelect
) components.This can be done by passing a
isLoading
prop, like:GIF shows the
SelectControl
switching from loading to loaded.When
isLoading
is set, theselect
HTML element will be disabled.I've added more context re: design in this comment
How has this been tested?
In Storybook and in Jest (unit tests)
Types of changes
isLoading
prop toSelectControl
option
elements to account for loadingChecklist:
Resolves: #16026 (comment)