Skip to content

Commit

Permalink
fix tab role for carousel items
Browse files Browse the repository at this point in the history
  • Loading branch information
Ram Sharan Rimal committed Jan 9, 2025
1 parent b486879 commit a995592
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions overrides/home/carousel/carousel-item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,11 @@ export function ItemPanel({ item, linkComponent: LinkComponent }) {
}

export default function CarouselItem({ item, itemIdx, onTitleClick, shouldProgress, progressDone, progressPercentage, selected, linkComponent: LinkComponent }) {
return <Card
return<li
role="tab"
className="usa-card tablet:grid-col-4"
>
<Card
gridLayout={{ tablet: { col: 4 } }}
containerProps={{className:`hover:bg-base-lightest padding-x-1 radius-0 border-0 animation--transition ${(selected || shouldProgress)? 'opacity-100':'opacity-50'}`}}>
<ProgressBar shouldProgress={shouldProgress} progressDone={progressDone} progressPercentage={progressPercentage}selected={selected} />
Expand All @@ -71,6 +75,7 @@ export default function CarouselItem({ item, itemIdx, onTitleClick, shouldProgre
<span className="padding-left-1">Read more</span>
</LinkComponent>
</CardFooter>
</Card>
</Card>
</li>
}

0 comments on commit a995592

Please sign in to comment.