Skip to content
This repository has been archived by the owner on Apr 19, 2021. It is now read-only.

Commit

Permalink
make stuff valid in accordance to W3C.
Browse files Browse the repository at this point in the history
Fixes gitpod-io/website#842
  • Loading branch information
nisarhassan12 committed Jan 5, 2021
1 parent 49c7da9 commit 69480a7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/TrustedBy.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ const StyledTrustedBy = styled.section`
}
`

const StyledBrandImage = styled.img<{ transform?: string }>`
const StyledBrandImage = styled.img<{ transformValue?: string }>`
width: 9.5rem;
@media(max-width: ${sizes.breakpoints.lg}) {
Expand All @@ -90,7 +90,7 @@ const StyledBrandImage = styled.img<{ transform?: string }>`
}
@media(min-width: calc(${sizes.breakpoints.lg} + 1px)) {
transform: ${({ transform }) => (transform ? transform : 'none')};
transform: ${({ transformValue }) => (transformValue ? transformValue : 'none')};
}
`

Expand All @@ -117,7 +117,7 @@ const TrustedBy = ({ brands, title, styles }: TrustedByProps) => (
<div className="logos">
{brands.map((b: Brand) => (
<a href={b.url} target="_blank" className="trustedBy">
<StyledBrandImage src={b.svg} alt={b.alt} transform={b.transform} className={b.className} />
<StyledBrandImage src={b.svg} alt={b.alt} transformValue={b.transform} className={b.className} />
</a>
))}
</div>
Expand Down

0 comments on commit 69480a7

Please sign in to comment.