Skip to content

Commit

Permalink
fix(web): remove focusable box
Browse files Browse the repository at this point in the history
  • Loading branch information
albinagu committed Jan 8, 2025
1 parent e2ecff6 commit 4ac7ff1
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import React from 'react'
import {
Box,
Button,
FocusableBox,
Hidden,
Link,
Tag,
Expand All @@ -16,7 +15,6 @@ type CardWithFeaturedItemsProps = {
heading: string
imgSrc: string
imgAlt?: string
href: string | null
dataTestId?: string
buttonTitle?: string
featuredItems: Featured[]
Expand Down Expand Up @@ -71,14 +69,12 @@ export const CardWithFeaturedItems = ({
heading,
imgSrc,
imgAlt = '',
href,
dataTestId,
featuredItems,
buttonTitle,
}: CardWithFeaturedItemsProps) => {
return (
<FocusableBox
href={href ?? undefined}
<Box
background="purple100"
borderRadius="large"
color="purple"
Expand All @@ -87,6 +83,7 @@ export const CardWithFeaturedItems = ({
justifyContent="spaceBetween"
padding={3}
flexDirection={['columnReverse', 'row']}
display="flex"
>
<Box display="flex" flexDirection="column" justifyContent="spaceBetween">
<Box>
Expand Down Expand Up @@ -115,7 +112,7 @@ export const CardWithFeaturedItems = ({
<Box display="flex" justifyContent="center" alignItems="center">
<img src={imgSrc} alt={imgAlt} className={styles.image} />
</Box>
</FocusableBox>
</Box>
)
}

Expand Down

0 comments on commit 4ac7ff1

Please sign in to comment.