Show Share initials, a readable link, and a copy confirmation.

Filled avatars used white ink on yellow, the link field was a dimmed disabled input, and Copy failed silently when the clipboard API was denied.
This commit is contained in:
adilallo committed 2026-11-21 11:42:49 -07:00
1 parent 3a264ac2df
commit 0fe2624002
11 files changed
+132 -14

No files matched your search

+9
View File
@@ -117,6 +117,15 @@ describe("Avatar (behavioral tests)", () => {
);
});
it("paints filled initials in invert ink on the yellow field", () => {
render(
<Avatar alt="Ada Lovelace" initials="N" variant="filled" />,
);
expect(screen.getByText("N")).toHaveClass(
"text-[var(--color-content-invert-primary)]",
);
});
it("renders a button with hover treatment when onClick is set", () => {
const onClick = vi.fn();
render(