Skip to content

Commit 4893354

Browse files
heiskrCopilot
andauthored
Fix accessibility: Remove double keyboard focus on article cards (#60151)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 04b9a6d commit 4893354

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

src/landings/components/ArticleCard.tsx

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,11 @@ import styles from './ArticleCard.module.scss'
88
type Props = {
99
card: ArticleGuide
1010
typeLabel: string
11-
tabIndex?: number
1211
}
1312

14-
export const ArticleCard = ({ tabIndex, card, typeLabel }: Props) => {
13+
export const ArticleCard = ({ card, typeLabel }: Props) => {
1514
return (
16-
<li
17-
tabIndex={tabIndex}
18-
data-testid="article-card"
19-
className="d-flex col-12 col-md-4 pr-0 pr-md-6 pr-lg-8"
20-
>
15+
<li data-testid="article-card" className="d-flex col-12 col-md-4 pr-0 pr-md-6 pr-lg-8">
2116
<Link className="no-underline d-flex flex-column py-3 border-bottom" href={card.href}>
2217
<h3 className="h4 color-fg-default mb-1">{card.title}</h3>
2318
<div className="h6 text-uppercase" data-testid="article-card-type">

src/landings/components/ArticleCards.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ export const ArticleCards = () => {
3232
{guides.map((card, i) => {
3333
return (
3434
<ArticleCard
35-
tabIndex={-1}
3635
key={card.href + i}
3736
card={card}
3837
typeLabel={guideTypes[card.type] as string}

0 commit comments

Comments
 (0)