Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

chore: add link component#16156

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
BrunoQuaresma merged 2 commits intomainfrombq/add-link-component
Jan 15, 2025
Merged

chore: add link component#16156

BrunoQuaresma merged 2 commits intomainfrombq/add-link-component
Jan 15, 2025

Conversation

BrunoQuaresma
Copy link
Collaborator

Component based onLink design

Copy link
Contributor

@jaaydenhjaaydenh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

LGTM

({ className, text, size, ...props }, ref) => {
return (
<a className={cn(linkVariants({ size }), className)} ref={ref} {...props}>
{text}&nbsp;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Do we need a non-breaking space here?

Copy link
CollaboratorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I'm guessing that we're adding spacing between the text and icon, but I feel like flexbox would give better control over that and have fewer edge cases around work wrapping at smaller screen sizes

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

There needs to be some way to put a space between the text and the icon. It there a better alternative to add a space?

{
variants: {
size: {
lg: "text-sm mb-px",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Do we want a link to exert margins on nearby elements?

Copy link
CollaboratorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

the margin bottom was leftover from some experimentation and cane be removed

@BrunoQuaresma
Copy link
CollaboratorAuthor

@Parkreiner@jaaydenh I made some minor refactors and style tweaks. Additionally, I added a story to test the link within inline text.

@BrunoQuaresma
Copy link
CollaboratorAuthor

Hey folks, since the tests and stories are all good, I'll go ahead and merge this to unblock my work on another feature. If there's any improvement we absolutely need, please let me know, and I'll address it in my next PR.

@BrunoQuaresmaBrunoQuaresma merged commit2052b55 intomainJan 15, 2025
30 checks passed
@BrunoQuaresmaBrunoQuaresma deleted the bq/add-link-component branchJanuary 15, 2025 19:43
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsJan 15, 2025
variants: {
size: {
lg: "text-sm gap-[2px] [&_svg]:size-icon-sm [&_svg]:p-[2px] leading-6",
sm: "text-xs gap-1 [&_svg]:size-icon-xs [&_svg]:p-[1px] leading-[18px]",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

why usep-[1px] instead ofp-px?

Copy link
CollaboratorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I didn't knowp-px was a thing.

Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@jaaydenhjaaydenhjaaydenh approved these changes

@ParkreinerParkreinerAwaiting requested review from Parkreiner

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@BrunoQuaresma@jaaydenh@Parkreiner

[8]ページ先頭

©2009-2025 Movatter.jp