Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

fixed a11y

Steven Tey445b3ccf4db6
diff --git a/app/ui/home/link-card.tsx b/app/ui/home/link-card.tsx
index 61e4b6ca86..9426d2ccc8 100644
--- a/app/ui/home/link-card.tsx
+++ b/app/ui/home/link-card.tsx
@@ -192,6 +192,7 @@ export default function LinkCard({
onClick={() => setShowAddEditLinkModal(true)}
className="rounded-md px-1 py-2 transition-all duration-75 hover:bg-gray-100 active:bg-gray-200"
>
+ <span className="sr-only">Edit</span>
<ThreeDots className="h-5 w-5 text-gray-500" />
</button>
</motion.div>
diff --git a/app/ui/home/pricing.tsx b/app/ui/home/pricing.tsx
index f30dabc85a..380d0d9d5e 100644
--- a/app/ui/home/pricing.tsx
+++ b/app/ui/home/pricing.tsx
@@ -8,12 +8,11 @@ import {
QuestionCircle,
XCircleFill,
} from "@/components/shared/icons";
-import { LoadingDots } from "#/ui/icons";
import MaxWidthWrapper from "@/components/shared/max-width-wrapper";
import Switch from "#/ui/switch";
import Tooltip from "#/ui/tooltip";
import { PLANS } from "@/lib/stripe/constants";
-import { capitalize, nFormatter } from "@/lib/utils";
+import { nFormatter } from "@/lib/utils";
const pricingItems = [
{
diff --git a/app/ui/switch.tsx b/app/ui/switch.tsx
index 4d5d54204d..84fa1fb037 100644
--- a/app/ui/switch.tsx
+++ b/app/ui/switch.tsx
@@ -22,6 +22,7 @@ const Switch = ({
return (
<SwitchPrimitive.Root
checked={checked}
+ name="switch"
onCheckedChange={(checked) => fn(checked)}
disabled={disabled}
className={clsx(
diff --git a/app/ui/tooltip.tsx b/app/ui/tooltip.tsx
index f82e4a46ec..0247968a5d 100644
--- a/app/ui/tooltip.tsx
+++ b/app/ui/tooltip.tsx
@@ -44,6 +44,7 @@ export default function Tooltip({
className={`${fullWidth ? "w-full" : "inline-flex"} sm:hidden`}
onClick={() => setOpenTooltip(true)}
>
+ <span className="sr-only">Open tooltip</span>
{children}
</button>
<AnimatePresence>
diff --git a/components/app/links/link-card.tsx b/components/app/links/link-card.tsx
index cd40ce0d59..68b20f5ed3 100644
--- a/components/app/links/link-card.tsx
+++ b/components/app/links/link-card.tsx
@@ -361,6 +361,7 @@ export default function LinkCard({ props }: { props: LinkProps }) {
}}
className="rounded-md px-1 py-2 transition-all duration-75 hover:bg-gray-100 active:bg-gray-200"
>
+ <span className="sr-only">Edit</span>
<ThreeDots className="h-5 w-5 text-gray-500" />
</button>
</Popover>
diff --git a/components/shared/tweet.tsx b/components/shared/tweet.tsx
index a99f3adb59..0b583749bd 100644
--- a/components/shared/tweet.tsx
+++ b/components/shared/tweet.tsx
@@ -171,6 +171,7 @@ export default function Tweet({
</div>
</div>
<a href={tweetUrl} target="_blank" rel="noreferrer">
+ <span className="sr-only">Link to tweet</span>
<Twitter className="h-5 w-5 text-[#3BA9EE] transition-all ease-in-out hover:scale-105" />
</a>
</div>