diff --git a/src/components/components.test.tsx b/src/components/components.test.tsx
index 8357621..10682e9 100644
--- a/src/components/components.test.tsx
+++ b/src/components/components.test.tsx
@@ -78,7 +78,7 @@ describe("UI Components", () => {
,
);
- const link = getByLabelText("My Title");
+ const link = getByLabelText("My Title (opens in a new tab)");
expect(link).toBeInTheDocument();
expect(link.getAttribute("href")).toBe("https://example.com");
expect(link.getAttribute("target")).toBe("_blank");
@@ -93,7 +93,7 @@ describe("UI Components", () => {
];
const { getByLabelText } = render(
{subtitle}
{footer}
+ (opens in a new tab) ); diff --git a/src/components/social.tsx b/src/components/social.tsx index 83c0e03..ac4d2a9 100644 --- a/src/components/social.tsx +++ b/src/components/social.tsx @@ -16,7 +16,7 @@ const Social = ({ profiles: propsProfiles }: { profiles?: Profile[] }) => { variant="ghost" size="lg" isIconOnly - aria-label={profile.name} + aria-label={`${profile.name} (opens in a new tab)`} className="text-slate-500 hover:text-primary rounded-full text-2xl" onPress={() => window.open(profile.link, "_blank", "noopener,noreferrer")