-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
feat(InlineLoading): add support for warning status #4810
feat(InlineLoading): add support for warning status #4810
Conversation
Deploy preview for carbon-elements ready! Built with commit b09ce89 |
Deploy preview for carbon-components-react ready! Built with commit b09ce89 https://deploy-preview-4810--carbon-components-react.netlify.com |
Deploy preview for the-carbon-components ready! Built with commit b09ce89 https://deploy-preview-4810--the-carbon-components.netlify.com |
New UX feature, requires design review. |
@emyarod Oh yeah, right. I was wondering why it wasn't else-if and didn't think about the returns. Thank you! |
Hey @janhassel! Is there a corresponding issue we could look at for this feature? |
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.
Agreed, should be the filled version.
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.
LGTM 👍 - Thanks @janhassel!
@joshblack We haven't opened an issue for this, but I can send you some information about the use case via Slack if you want. |
@janhassel would you mind opening a ticket for it just so we can better understand the use-case/goal for adding it in? Separately, I think the changes to the error icons and what-not are perfect so it might make sense to get that in with this PR and then do the net-new functionality in a later one once we understand the use-case. |
@joshblack I opened an issue with a sample use case (committing in git): #4835 |
Thanks @janhassel! |
Just a quick note, still waiting for another dev review and for the linked issue to be signed off by design 👍 After talking in our support channel it seems like @aagonzales might have only noticed the icon change (which is perfect 💯) and not the additional feature so will wait on them to verify in the linked issue! |
@janhassel If the user is given the warning does that mean the load was not successful? The example is about merge conflicts but I'm trying to understand what is being recommended for the general guidance of when "warning" would be used instead of a binary success/fail. |
@aagonzales Let's think about another example: a file uploader. We show the user the Inline Loading component while the file is being uploaded, once it's done, we switch to the So to sum it up:
error
warning
|
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.
Looks great on the dev side of things, just need @aagonzales to sign off and we can merge it in 👍
Any chance we could split this into just the icon change and then the proposal for the behavior? Would love to chat/learn more about the warning use-case and how we can incorporate into docs/guidance 👍 |
Definitely, I opened another PR just concerning the icon: #5018 @joshblack I'll send you a detailed example on Slack. |
Any updates @janhassel @joshblack? Thanks! |
Controversial statement: I think this feature is its own component and not an enhancement to inline loading. It's a status indictor and not solely about the state of loading. Jan explained the scenario to me further and I believe its a valid use-case I'm just not sure it belongs within the |
@aagonzales Would you have a chance to other designer peers and see what we should do with this PR...? Thanks! |
Closing this out in favor of the proposal over in: #4835 Thanks again for talking through this stuff @janhassel! |
This PR adds the option for a warning status to the InlineLoading component.
Changelog
New
warning
status in InlineLoadingChanged
finished
state and improve contrast for warning.