Accessibility: Interactive Card must have an accessible name via aria-label, aria-labelledby, etc (@microsoft/fluentui-jsx-a11y/card-needs-accessible-name)
💼 This rule is enabled in the ✅ recommended config.
Interactive Card components must have an accessible name for screen readers.
This rule enforces that Card components have proper accessible names when they are interactive (clickable).
<Card>
<CardHeader>
<Text weight="semibold">Card title</Text>
</CardHeader>
</Card><Card aria-label="Product details">
<CardHeader>
<Text weight="semibold">Card title</Text>
</CardHeader>
</Card>
<Card aria-labelledby="card-title">
<CardHeader>
<Text id="card-title" weight="semibold">Card title</Text>
</CardHeader>
</Card>If the Card is purely decorative and not interactive, this rule is not necessary.