-
-
Notifications
You must be signed in to change notification settings - Fork 532
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: extend badge to be available for group links #995
Conversation
🦋 Changeset detectedLatest commit: 856e430 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 |
✅ Deploy Preview for astro-starlight ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
size-limit report 📦
|
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.
More badges 🎉 Amazing.
I left a few questions mostly regarding the documentation and I have some visual feedback as well.
I am not sure if this is expected or part of the initial design, but I think the gap between a label and a badge is different for a link and a group. I am not saying they should be the same, but I personally think the gap is too small for a group at least.
I think there may be some wrapping behavior that is not handled yet compared to links:
Last point, maybe we should also update a few tests to ensure in a snapshot we get badges for groups too?
Impatient to see this merged and add more badges to my documentations ^^
Co-authored-by: HiDeoo <494699+HiDeoo@users.noreply.github.com>
Indeed, this is something I noticed in the past, and I'm pretty sure we talked about this somewhere else but I cannot find where. I am no designer but for what it's worth, I personally think it could be slightly decreased. Not sure what others think though. |
Good catch. I think we did discuss and adjust this for individual link items, but didn’t for group headings. Compare the spacing here for example: The trick is to work out how to reduce the line-height and then add back some vertical padding so that the overall spacing for lines that don’t wrap stays the same. #419 did this for link items. |
Thanks for the suggestions and the reference PR @delucis . I gave it a try, taking |
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
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.
Yay! I think this is in pretty good shape — thanks @kevinzunigacuellar.
Few more small details, to clean this up.
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
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.
Really great work on this one @kevinzunigacuellar. Left one last note to polish up the changeset, but then LGTM! 🌟
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
Oops, I guess we better cut a release then :-D Usually we wait before merging changes like this because they immediately update docs even before we release them. I totally did not make that clear with my “LGTM” comment though, sorry 😅 Let me take a look through the open PRs to see if there’s some other stuff we can get out with this. |
What kind of changes does this PR include?
Description