-
-
Notifications
You must be signed in to change notification settings - Fork 530
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: Add badge to LinkCard component #712
base: main
Are you sure you want to change the base?
Feat: Add badge to LinkCard component #712
Conversation
Signed-off-by: Lorenzo Lewis <lorenzo_lewis@icloud.com>
🦋 Changeset detectedLatest commit: 921d4cc 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 processing.
|
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.
I really like the idea of this PR personally. Left a few comments mostly regarding the technical aspect.
UI-wise, I am not sure if it's just me or not but the label does not feel vertically centered but I'll have to take a closer look when I have more time.
Co-authored-by: HiDeoo <494699+HiDeoo@users.noreply.github.com>
Thanks! Appreciate it!
I agree. I think the sidebar has the same sort of issue and this is the same CSS as that. I think it's aligned to the text baseline here, but I wonder if it would make sense to centre it overall vertically instead via |
Signed-off-by: Lorenzo Lewis <lorenzo_lewis@icloud.com>
Signed-off-by: Lorenzo Lewis <lorenzo_lewis@icloud.com>
Gonna throw my idea in here: |
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.
I tweaked the error message slightly from your suggestion to hopefully make it a little more clear:
Good call, I didn't really think too much about the text when typing up the example 👍
The issue with this kind of features is that certain hosting providers don't allow for deep clones of their repos so you don't get any of the git history data when building there. Still an interesting idea tho, I also think later this could be done by a custom integration/plugin through component customization. |
Yeah, this is due to us relying on inline styling in the sidebar. Can be fixed with a |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
How does this thing still not have any conflicts? 😅 How are we feeling now that Badges are merged in? Do we want to update this to use them or toss this out? I would personally still like to have it for the sake of having feature parity with sidebar entries (this was really some pre-work to build a "Table of Contents" component for a section of a sidebar). |
20 minutes ago I removed badge from my content collections, just because LinkCard doesn't support it. Good news, PR exists! Bad news, last update 6 mo ago. |
What kind of changes does this PR include?
Description
badge
prop to theLinkCard
componentBadgeConfigSchema().parse()
correctly inLinkCard.astro
as this is my first time working with that bit of Zod, so any review/feedback on that would be much appreciated.