-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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(progress-bar): add alignment variants #10769
feat(progress-bar): add alignment variants #10769
Conversation
✔️ Deploy Preview for carbon-react-next ready! 🔨 Explore the source changes: 5e3c6eb 🔍 Inspect the deploy log: https://app.netlify.com/sites/carbon-react-next/deploys/6230c2a337e5630009d13b7b 😎 Browse the preview: https://deploy-preview-10769--carbon-react-next.netlify.app |
✔️ Deploy Preview for carbon-elements ready! 🔨 Explore the source changes: 5e3c6eb 🔍 Inspect the deploy log: https://app.netlify.com/sites/carbon-elements/deploys/6230c2a322871d00080d7360 😎 Browse the preview: https://deploy-preview-10769--carbon-elements.netlify.app |
✔️ Deploy Preview for carbon-components-react ready! 🔨 Explore the source changes: 5e3c6eb 🔍 Inspect the deploy log: https://app.netlify.com/sites/carbon-components-react/deploys/6230c2a3eddf2b00092c6e47 😎 Browse the preview: https://deploy-preview-10769--carbon-components-react.netlify.app |
@janhassel thank you for doing this! I would need a designer to confirm but comparing it seems like the label is indented a bit too much in the storybook example. It almost looks like the padding-left for the label is 8px and padding left for the optional text is 16, but there is no example of the two used together for the indented variant so i'm not sure . |
@janhassel Sorry coming to this late.
@abbeyhrt I don't see the indented version on react. How can I view that? |
You can check out the different alignment variants by going to the "Playground" story and changing the "Type" option in the knobs panel. Here's a direct link to the indented version: https://deploy-preview-10769--carbon-components-react.netlify.app/?path=/story/experimental-unstable-progressbar--playground&knob-Type%20(type)=indented You're right, the helper text is currently too close to the progress bar. I noticed that too and corrected it together with the work in #10843. So once the statuses are finalized, this bug will also be fixed 🙂 |
thanks Jan! |
Let me know if you have any questions around this PR @abbeyhrt @aledavila @thyhmdo |
thanks @janhassel for updating. Just one thing. The #10843 looks good to me. The indent alignment does not appear on that doc but on this issue instead. I may have to wait for something to be deployed. Other than that, it looks good! |
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 good to me code-wise! Thank you for the contribution!
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.
indentations look good to me.
@thyhmdo you should be able to find them visually here. and change them under knobs
and then under type
. https://deploy-preview-10769--carbon-components-react.netlify.app/?path=/story/experimental-unstable-progressbar--playground
Let me know if you can't see them and I can help out more :)
@thyhmdo Basically the two pull requests handle two different topics: The alignment variants in this one and the statuses in the other one. As long as both are open and have not yet been merged their features will not be available in the respective other one. So as soon as this pull request is merged I can update the second one and then the alignment variants will be available as a preview in combination with the statuses. Let me know if I misunderstood your question! |
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 good to me!
* fix(styling): missing tokens * fix(search): hover * fix(search): format and remove pointer events * fix(data-table): hover * fix(search): expandable size
Ref #10670
Adds a new prop (
type
) to theProgressBar
component and adds styling necessary to render the different alignment variants.Changelog
New
props.type
toProgressBar
default
,inline
andindented
Testing / Reviewing
Verify visuals with storybook.
Just want to make sure that
type
is the preferred prop name right now / for v11. The discussion in #9623 doesn't seem to have been fully concluded so I compared the number of components usingtype
vs.kind
with https://carbon-react-explorer.vercel.app/props and decided ontype
based on that.Let me know if there has been a decision I on this topic I'm not aware of.
@thyhmdo Can you please confirm that the "inline" alignment variant should never have a visible helper text? I couldn't find any explicit guidance around this but also didn't see any mockups with it applied so I assumed a helper text is not supported in that case.