Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions components/bounty-detail/bounty-detail-sidebar-cta.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -521,6 +521,7 @@ export function MobileCTA({ bounty, onCancelled }: MobileCTAProps) {
size="lg"
className="h-11 border-red-500/30 text-red-400 hover:bg-red-500/10 shrink-0"
onClick={() => setCancelDialogOpen(true)}
aria-label="Cancel bounty"
>
<XCircle className="size-4" />
</Button>
Expand Down Expand Up @@ -549,6 +550,7 @@ export function MobileCTA({ bounty, onCancelled }: MobileCTAProps) {
size="lg"
className="h-11 border-red-500/30 text-red-400 hover:bg-red-500/10 shrink-0"
onClick={() => setCancelDialogOpen(true)}
aria-label="Cancel bounty"
>
<XCircle className="size-4" />
</Button>
Expand Down
12 changes: 6 additions & 6 deletions components/bounty-detail/model4-maintainer-dashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ export function Model4MaintainerDashboard({
((currentMilestoneIndex + 1) / milestones.length) * 100,
),
);
const messageActionLabel = `Send message to ${contributor.userName} (coming soon)`;
const removeActionLabel = `Remove ${contributor.userName} from slot (coming soon)`;

return (
<div
Expand Down Expand Up @@ -139,13 +141,12 @@ export function Model4MaintainerDashboard({
handleAction("Message", contributor.userName)
}
disabled={loadingAction !== null}
aria-label={messageActionLabel}
>
<MessageSquare className="size-4" />
</Button>
</TooltipTrigger>
<TooltipContent>
Send Message [Coming soon]
</TooltipContent>
<TooltipContent>{messageActionLabel}</TooltipContent>
</Tooltip>

<Tooltip>
Expand Down Expand Up @@ -228,13 +229,12 @@ export function Model4MaintainerDashboard({
handleAction("Remove", contributor.userName)
}
disabled={loadingAction !== null}
aria-label={removeActionLabel}
>
<UserMinus className="size-4" />
</Button>
</TooltipTrigger>
<TooltipContent>
Remove from slot [Coming soon]
</TooltipContent>
<TooltipContent>{removeActionLabel}</TooltipContent>
</Tooltip>
</TooltipProvider>
</div>
Expand Down
1 change: 1 addition & 0 deletions components/bounty/forms/milestone-builder.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ export function MilestoneBuilder<
onClick={() => remove(index)}
disabled={fields.length === 1}
className="text-muted-foreground hover:text-destructive"
aria-label={`Remove milestone ${index + 1}`}
>
<Trash2 className="size-4" />
</Button>
Expand Down
1 change: 1 addition & 0 deletions components/bounty/refund-status.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ export function RefundStatusTracker({
onClick={handleCopyHash}
className="shrink-0 p-1.5 rounded-md hover:bg-muted/50 transition-colors"
title="Copy transaction hash"
aria-label="Copy transaction hash"
>
{copiedHash ? (
<Check className="h-3.5 w-3.5 text-emerald-400" />
Expand Down
7 changes: 6 additions & 1 deletion components/compliance/document-upload.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,12 @@ export function DocumentUpload({
</div>
</div>
{!uploaded && !uploading && (
<Button variant="ghost" size="sm" onClick={clearFile}>
<Button
variant="ghost"
size="sm"
onClick={clearFile}
aria-label={`Remove ${label} file`}
>
<X className="w-4 h-4" />
</Button>
)}
Expand Down
2 changes: 1 addition & 1 deletion components/global-navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ export function GlobalNavbar() {
<WalletSheet
walletInfo={activeWalletInfo}
trigger={
<Button variant="outline" size="icon">
<Button variant="outline" size="icon" aria-label="Open wallet">
<Wallet className="h-4 w-4" />
</Button>
}
Expand Down
18 changes: 9 additions & 9 deletions components/mode-toggle.tsx
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
"use client"
"use client";

import * as React from "react"
import { Moon, Sun } from "lucide-react"
import { useTheme } from "next-themes"
import * as React from "react";
import { Moon, Sun } from "lucide-react";
import { useTheme } from "next-themes";

import { Button } from "@/components/ui/button"
import { Button } from "@/components/ui/button";
import {
DropdownMenu,
DropdownMenuContent,
DropdownMenuItem,
DropdownMenuTrigger,
} from "@/components/ui/dropdown-menu"
} from "@/components/ui/dropdown-menu";

export function ModeToggle() {
const { setTheme } = useTheme()
const { setTheme } = useTheme();

return (
<DropdownMenu>
<DropdownMenuTrigger asChild>
<Button variant="outline" size="icon">
<Button variant="outline" size="icon" aria-label="Toggle theme">
<Sun className="h-[1.2rem] w-[1.2rem] scale-100 rotate-0 transition-all dark:scale-0 dark:-rotate-90" />
<Moon className="absolute h-[1.2rem] w-[1.2rem] scale-0 rotate-90 transition-all dark:scale-100 dark:rotate-0" />
<span className="sr-only">Toggle theme</span>
Expand All @@ -36,5 +36,5 @@ export function ModeToggle() {
</DropdownMenuItem>
</DropdownMenuContent>
</DropdownMenu>
)
);
}
Loading