Skip to content

Commit 0478ba1

Browse files
TonybynMp4claude
andcommitted
fix(web): label descriptions open by keyboard in the pull request detail view
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
1 parent 83512b1 commit 0478ba1

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

‎apps/web/src/components/pullRequest/PullRequestSummaryTab.tsx‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -770,6 +770,7 @@ export function PullRequestSummaryTab({
770770
label={label}
771771
size="default"
772772
className="max-w-48"
773+
focusable
773774
/>
774775
))
775776
)}

‎apps/web/src/components/pullRequest/pullRequestPresentation.tsx‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,13 @@ export function PullRequestLabelChip({
4040
label,
4141
size = "sm",
4242
className,
43+
focusable = false,
4344
children,
4445
}: {
4546
label: Pick<PullRequestLabel, "name" | "color" | "description">;
4647
size?: "sm" | "default";
4748
className?: string;
49+
focusable?: boolean;
4850
children?: ReactNode;
4951
}) {
5052
const color = pullRequestLabelColor(label.color);
@@ -53,6 +55,7 @@ export function PullRequestLabelChip({
5355
size={size}
5456
variant={color ? "label" : "secondary"}
5557
className={cn("min-w-0 max-w-40 shrink justify-start", className)}
58+
{...(focusable && label.description ? { tabIndex: 0 } : {})}
5659
{...(color ? { style: { "--label": color } as CSSProperties } : {})}
5760
>
5861
<span className="truncate">{label.name}</span>

0 commit comments

Comments
 (0)