-
-
Notifications
You must be signed in to change notification settings - Fork 567
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
Add LinkCard Component #397
Conversation
Signed-off-by: Lorenzo Lewis <[email protected]>
Signed-off-by: Lorenzo Lewis <[email protected]>
Signed-off-by: Lorenzo Lewis <[email protected]>
Signed-off-by: Lorenzo Lewis <[email protected]>
🦋 Changeset detectedLatest commit: 746bf99 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. |
Neat, this would be a great addition, I needed something like this recently. Some quick thoughts/questions:
|
Thanks for this! Going to wait for some feedback from @doodlemarks before looking too much into the implementation — looped Mark in in the Discord thread: https://discord.com/channels/830184174198718474/1133135977628577813 |
Signed-off-by: Lorenzo Lewis <[email protected]>
Signed-off-by: Lorenzo Lewis <[email protected]>
Signed-off-by: Lorenzo Lewis <[email protected]>
Signed-off-by: Lorenzo Lewis <[email protected]>
Signed-off-by: Lorenzo Lewis <[email protected]>
Thanks @HiDeoo , I put that in. Always a pleasure learning from you 💜 Updated design based on discussion in the Discord thread |
Well, this was mostly my own thoughts / questions, maybe that's just bad ideas ^^ We will see what the team thinks about it. |
No worries, can always revert it if someone says otherwise |
Signed-off-by: Lorenzo Lewis <[email protected]>
Signed-off-by: Lorenzo Lewis <[email protected]>
Signed-off-by: Lorenzo Lewis <[email protected]>
Alright, this one is ready for review. These are the things that I know of that didn't get included in this one:
The code block on the documentation page felt a bit long to me, so if anyone else agrees I can refactor that to reduce the number of cards. |
@lorenzolewis Thank for your patience on this once! Was hoping to get a release out with this today so commandeered your work, only to run out of time in the day 😅 So apologies for committing and not reviewing! Let me at least leave some notes on what I changed:
Given I basically invented the rush in my head and we actually do have time to discuss, I do have a question: how important do we think it is for someone to have the ability to set <a title="Titled link" href="/">Link text</a> |
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.
If people agree we can stick with title
, we can make these changes:
I've seen this technique used a lot but it's not super recommended (even in this link) so personally I think it should be fine. |
Great link — thank you! Yeah, I think that case should be covered by being able to add a I’m generally in favour of “the most accessible text is visible and accessible to all technologies” an a component restricting usage a little bit to encourage correct output also seems part of the motivation for making components, so leaning towards API consistency here. |
Thanks for the changes @delucis (and you're always welcome to commandeer my PRs anytime, I just enjoy learning through them 🥳 ) For my personal use case using |
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.
OK, let’s do it! Made that change and will get this out in the next release.
Thanks again for the great work here @lorenzolewis!
Woot! Then I can work on my next evil plan for a Table of Contents component 😈 😆 (will open an issue to discuss first <3 ) |
What kind of changes does this PR include?
Description
Opening as a draft for now to get some feedback. Relevant discussion on Discord: https://discord.com/channels/830184174198718474/1133135977628577813
LinkCard
component for a nicely styled clickable card.content
CSS to allow styling for components explicitly marked as.content
(this was done because theLinkCard
component is ana
element andtop-margin
was not being applied. Open to a different way on this if some better suggestions)