Skip to content

Commit

Permalink
fix image superposition
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Sep 16, 2023
1 parent ca9c35f commit 81b9644
Showing 1 changed file with 3 additions and 18 deletions.
21 changes: 3 additions & 18 deletions docs/src/components/about/AboutHero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ function PhotoGallery() {
height: '100%',
position: 'absolute',
width: 200,
zIndex: 2,
zIndex: 1,
pointerEvents: 'none',
},
'&::before': {
right: { xs: -64, sm: -20 },
Expand All @@ -125,23 +126,7 @@ function PhotoGallery() {
>
<ImageContainer>
{teamPhotos.map((item, index) => (
<Image
key={index}
src={item.img}
alt={item.title}
loading="lazy"
/>
))}
</ImageContainer>
<ImageContainer aria-hidden="true">
{/* aria-hidden is used here because this element is a copy from the above, meaning we want to hide it from screen readers. */}
{teamPhotos.map((item, index) => (
<Image
key={index}
src={item.img}
alt={item.title}
loading="lazy"
/>
<Image key={index} src={item.img} alt={item.title} loading="lazy" />
))}
</ImageContainer>
</Box>
Expand Down

0 comments on commit 81b9644

Please sign in to comment.