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:
1 parent
3a264ac2df
commit
0fe2624002
11 files changed
+132
-14
No files matched your search
@@ -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(
|
||||
|
||||
Reference in new issue
Block a user