-
Notifications
You must be signed in to change notification settings - Fork 5
Update Link Component #1472
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
Update Link Component #1472
Conversation
ecc2b18 to
ebfc92f
Compare
| <TableCell className="text-sm flex items-center gap-2"> | ||
| <StatusIcon status={getRunStatus(statusCounts)} /> | ||
| <Link {...LinkProps}>{name}</Link> | ||
| <Paragraph>{name}</Paragraph> |
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.
The row already has a handler to navigate to the url, so an embedded link to the same location is unnecessary
| primary: "text-primary hover:underline", | ||
| disabled: "text-muted-foreground cursor-not-allowed pointer-events-none", | ||
| classic: "text-sky-500 hover:text-sky-600 hover:underline", | ||
| block: "text-inherit", |
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.
for when the link wraps around a block of content such as a table row or an icon
| > | ||
| {children} | ||
| {external && <ExternalLink className={cn("h-4", iconClassName)} />} | ||
| {download && <DownloadIcon className={cn("h-4", iconClassName)} />} |
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.
completely unused
| <footer | ||
| className="footer w-full px-4 text-center bg-gray-50" | ||
| style={{ height: `${BOTTOM_FOOTER_HEIGHT}px` }} | ||
| > |
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 know you didn't change it but can we make the footer component? I noticed, for some reason, these changes made the text on the footer sit a little high and this fixed it.
<footer
className={`footer w-full px-4 text-center items-center bg-grey-50 h-[${BOTTOM_FOOTER_HEIGHT}px]`}
>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.
Are you sure? The text looks fine to me. Do you have a screenshot?
From my understanding of Tailwind embedding a variable into the tailwind string doesn't work.
I am going to merge and if this truly is an issue we can fix separately.
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.
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.
its small but this is what I was seeing
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 think this is inadvertently fixed by #1484
ebfc92f to
ed53591
Compare

Description
Update our core
Linkcomponent for improved UI. Migrate various places around the app onto the Link component.Related Issue and Pull requests
Type of Change
Checklist
Screenshots (if applicable)
Test Instructions
All links should work as expected!
Additional Comments
Given I passed through a variety of components I made an effort NOT to start refactoring everything I saw onto UI primitives. I will deal with that later. This PR is solely focussed on
<a />and<Link />