Skip to content

Commit

Permalink
Fix CommunityCard tab navigation behaviour (#1191)
Browse files Browse the repository at this point in the history
  • Loading branch information
VilppeRiskidev committed Aug 28, 2024
1 parent 0db27e9 commit 136ae28
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,18 @@
filter: brightness(1.15);
}

.root:focus-within {
border-radius: var(--border-radius--8);
outline: 0.2rem solid var(--color-cyber-green--50);
outline-offset: 0.5rem;
}

.root .imageWrapper > div {
transform-origin: bottom;
}

.root:hover .imageWrapper > div {
.root:hover .imageWrapper > div,
.root:focus-within .imageWrapper > div {
transform: scale(1.05);
}

Expand All @@ -26,6 +33,10 @@
text-overflow: ellipsis;
}

.title > a:focus-visible {
outline: none !important;
}

.metaItemList {
display: flex;
flex-direction: row;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@ export function CommunityCard(props: Props) {

return (
<div className={styles.root}>
<a href={`/c/${community.identifier}`} title={community.name}>
<a
tabIndex={-1}
href={`/c/${community.identifier}`}
title={community.name}
>
<ImageWithFallback
src={community.cover_image_url}
type="community"
Expand Down

0 comments on commit 136ae28

Please sign in to comment.