mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-12 01:02:39 +02:00
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:
commit
316a90079c
2 changed files with 2 additions and 0 deletions
|
|
@ -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) => {
|
||||
|
|
|
|||
|
|
@ -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) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue