-
Notifications
You must be signed in to change notification settings - Fork 645
[UnderlineNav2]: Add string type to the counter prop and display loading counter for all
#2449
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
[UnderlineNav2]: Add string type to the counter prop and display loading counter for all
#2449
Conversation
🦋 Changeset detectedLatest commit: 6835a22 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
size-limit report 📦
|
| )} | ||
| {counter && ( | ||
| {loadingCounters ? ( | ||
| <Box as="span" data-component="counter" sx={counterStyles}> |
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 wanted to point out that I am not super happy with this duplication of the the wrapper Box component but otherwise it wasn't easily readable so that was my trade off but open to suggestions (as always) 💖
|
@danielguillan Could I please get a review on loading counters? Especially for their width and background colour and opacity? Its source code is here Thank you! 😊 |
|
Thanks @broccolinisoup! Let's try the following:
|
74387fa to
4247884
Compare
d1c586e to
cc99b2f
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.
Looks great! I just added one little change suggestion.
Co-authored-by: Daniel Guillan <[email protected]>
…ading counter for all (#2449) * string type for counters and fix loading issue * add changeset * improve docs * update animation details * Inverte the pulse effect Co-authored-by: Daniel Guillan <[email protected]> Co-authored-by: Daniel Guillan <[email protected]>
…ading counter for all (#2449) * string type for counters and fix loading issue * add changeset * improve docs * update animation details * Inverte the pulse effect Co-authored-by: Daniel Guillan <[email protected]> Co-authored-by: Daniel Guillan <[email protected]>
…ading counter for all (#2449) * string type for counters and fix loading issue * add changeset * improve docs * update animation details * Inverte the pulse effect Co-authored-by: Daniel Guillan <[email protected]> Co-authored-by: Daniel Guillan <[email protected]>
…viour (A11y sign-off remediations) (#2447) * Discard the pointer types and scroll behaviour * add changeset * remove arrow btn styles * introduce gap between items and remove 4px padding around the links * [UnderlineNav2]: React router implementation fixes & docs improvement (#2448) * react router implementation fixes * add changeset * [UnderlineNav2]: Add string type to the `counter` prop and display loading counter for all (#2449) * string type for counters and fix loading issue * add changeset * improve docs * update animation details * Inverte the pulse effect Co-authored-by: Daniel Guillan <[email protected]> Co-authored-by: Daniel Guillan <[email protected]> * Remove unnecessary styles (scroll behaviour styles) * improve docs Co-authored-by: Daniel Guillan <[email protected]>
Issues addressed in this PR:
Storybook link: https://primer-8434fe8ecf-13348165.drafts.github.io/storybook/?path=/story/components-underlinenav--counters-loading-state
Documentation link: https://primer-8434fe8ecf-13348165.drafts.github.io/drafts/UnderlineNav2
Merge checklist
Take a look at the What we look for in reviews section of the contributing guidelines for more information on how we review PRs.