Skip to content

Commit 064d973

Browse files
committed
table hover improvements
1 parent b96b9eb commit 064d973

File tree

2 files changed

+9
-6
lines changed
  • apps/webapp/app

2 files changed

+9
-6
lines changed

apps/webapp/app/components/GitMetadata.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,10 @@ export function GitMetadataBranch({
2525
<LinkButton
2626
variant="minimal/small"
2727
LeadingIcon={<GitBranchIcon className="size-4" />}
28+
leadingIconClassName="group-hover/table-row:text-text-bright"
2829
iconSpacing="gap-x-1"
2930
to={git.branchUrl}
30-
className="pl-1"
31+
className="pl-1 duration-0 [&_span]:duration-0 [&_span]:group-hover/table-row:text-text-bright"
3132
>
3233
{git.branchName}
3334
</LinkButton>
@@ -49,8 +50,9 @@ export function GitMetadataCommit({
4950
variant="minimal/small"
5051
to={git.commitUrl}
5152
LeadingIcon={<GitCommitIcon className="size-4" />}
53+
leadingIconClassName="group-hover/table-row:text-text-bright"
5254
iconSpacing="gap-x-1"
53-
className="pl-1"
55+
className="pl-1 duration-0 [&_span]:duration-0 [&_span]:group-hover/table-row:text-text-bright"
5456
>
5557
{`${git.shortSha} / ${git.commitMessage}`}
5658
</LinkButton>
@@ -74,8 +76,9 @@ export function GitMetadataPullRequest({
7476
variant="minimal/small"
7577
to={git.pullRequestUrl}
7678
LeadingIcon={<GitPullRequestIcon className="size-4" />}
79+
leadingIconClassName="group-hover/table-row:text-text-bright"
7780
iconSpacing="gap-x-1"
78-
className="pl-1"
81+
className="pl-1 duration-0 [&_span]:duration-0 [&_span]:group-hover/table-row:text-text-bright"
7982
>
8083
#{git.pullRequestNumber} {git.pullRequestTitle}
8184
</LinkButton>

apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.deployments/route.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ export default function Page() {
257257
<TableRow key={deployment.id} className="group" isSelected={isSelected}>
258258
<TableCell to={path} isTabbableCell isSelected={isSelected}>
259259
<div className="flex items-center gap-2">
260-
<Paragraph variant="extra-small">{deployment.shortCode}</Paragraph>
260+
<Paragraph variant="extra-small" className="group-hover/table-row:text-text-bright">{deployment.shortCode}</Paragraph>
261261
{deployment.label && (
262262
<Badge variant="extra-small">{titleCase(deployment.label)}</Badge>
263263
)}
@@ -419,8 +419,8 @@ export default function Page() {
419419
export function UserTag({ name, avatarUrl }: { name: string; avatarUrl?: string }) {
420420
return (
421421
<div className="flex items-center gap-1">
422-
<UserAvatar avatarUrl={avatarUrl} name={name} className="h-4 w-4" />
423-
<Paragraph variant="extra-small">{name}</Paragraph>
422+
<UserAvatar avatarUrl={avatarUrl} name={name} className="h-4 w-4 group-hover/table-row:text-text-bright" />
423+
<Paragraph variant="extra-small" className="group-hover/table-row:text-text-bright">{name}</Paragraph>
424424
</div>
425425
);
426426
}

0 commit comments

Comments
 (0)