diff --git a/src/components/Card.module.scss b/src/components/Card.module.scss index 4f9e9fbd7b7..11ae16d9119 100644 --- a/src/components/Card.module.scss +++ b/src/components/Card.module.scss @@ -76,6 +76,13 @@ opacity: 1; } } + + border: 2px solid transparent; + + &:focus { + border: 2px solid var(--focus-outline-color-light); + outline: none; + } } .shape { diff --git a/src/components/Card.tsx b/src/components/Card.tsx index 26845a4d69e..96785880074 100644 --- a/src/components/Card.tsx +++ b/src/components/Card.tsx @@ -18,7 +18,13 @@ export type CardItem = { buttonIcon?: 'arrow-right' | 'external-arrow' } -export default function Card({ title, href, description, theme, buttonIcon = "arrow-right" }: CardItem) { +export default function Card({ + title, + href, + description, + theme, + buttonIcon = 'arrow-right', +}: CardItem) { const [isHovered, setIsHovered] = useState(false) return ( @@ -47,7 +53,7 @@ export default function Card({ title, href, description, theme, buttonIcon = "ar {href && (