app/components/admin/row-menu.tsx
26 lines and 1 functions in DrDustinEdwards/dustinedwards-info, at commit 1590ba4 on 2026-10-24. This file on GitHub.
Functions
| Function | Lines | Complexity | Covered | CRAP | Mutation |
|---|---|---|---|---|---|
| RowMenu | 4 to 27 | 1 | No data: no coverage report in this map | No data: no coverage report in this map | No data: no mutants in this code |
Imports
It imports app/components/admin/disclosure.tsx. Imported by app/components/admin/posts-table.tsx.
Source
import { DisclosureMenu } from "./disclosure";
// The accessible name names the row: fifteen controls all announcing "Actions" tell a screen reader nothing.
export function RowMenu({
label,
children,
}: {
label: string;
children: React.ReactNode;
}) {
return (
<DisclosureMenu
summaryLabel={label}
iconOnly
summary={
/* Drawn rather than U+22EE, which renders at the mercy of whatever font has it. */
<svg viewBox="0 0 16 16" aria-hidden="true" focusable="false">
<circle cx="8" cy="3" r="1.4" fill="currentColor" />
<circle cx="8" cy="8" r="1.4" fill="currentColor" />
<circle cx="8" cy="13" r="1.4" fill="currentColor" />
</svg>
}
>
{children}
</DisclosureMenu>
);
}