Merge pull request #1356 from mvanhorn/osc/913-aria-label-clickable-cards

feat(a11y): add aria-label to clickable media cards
This commit is contained in:
Rohan Verma 2026-05-09 16:11:54 -07:00 committed by GitHub
commit 316a90079c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 0 deletions

View file

@ -68,6 +68,7 @@ function UseCaseCard({
<div
role="button"
tabIndex={0}
aria-label={`Expand ${title}`}
className="cursor-pointer overflow-hidden bg-neutral-50 p-2 dark:bg-neutral-950"
onClick={open}
onKeyDown={(e) => {

View file

@ -118,6 +118,7 @@ function HeroCarouselCard({
<div
role="button"
tabIndex={0}
aria-label={`Expand ${title}`}
className="cursor-pointer bg-neutral-50 p-2 sm:p-3 dark:bg-neutral-950"
onClick={open}
onKeyDown={(e) => {