mirror of
https://github.com/explosion/spaCy.git
synced 2025-08-03 11:50:19 +03:00
Add alt
text
This commit is contained in:
parent
8384ff3d6d
commit
1d36bc6be1
|
@ -195,7 +195,7 @@ const SpaCyVersion = ({ version }) => {
|
|||
))
|
||||
}
|
||||
|
||||
const ImageGitHub = ({ url, isRounded }) => (
|
||||
const ImageGitHub = ({ url, isRounded, title }) => (
|
||||
// eslint-disable-next-line @next/next/no-img-element
|
||||
<img
|
||||
style={{
|
||||
|
@ -204,7 +204,7 @@ const ImageGitHub = ({ url, isRounded }) => (
|
|||
verticalAlign: 'middle',
|
||||
}}
|
||||
src={`https://img.shields.io/github/${url}`}
|
||||
alt=""
|
||||
alt={`${title} on GitHub`}
|
||||
/>
|
||||
)
|
||||
|
||||
|
@ -217,14 +217,17 @@ const Project = ({ data, components }) => (
|
|||
{data.github && (
|
||||
<Link to={`https://github.com/${data.github}`} hidden>
|
||||
<ImageGitHub
|
||||
title={data.title || data.id}
|
||||
url={`release/${data.github}/all.svg?style=flat-square`}
|
||||
isRounded
|
||||
/>
|
||||
<ImageGitHub
|
||||
title={data.title || data.id}
|
||||
url={`license/${data.github}.svg?style=flat-square`}
|
||||
isRounded
|
||||
/>
|
||||
<ImageGitHub
|
||||
title={data.title || data.id}
|
||||
url={`stars/${data.github}.svg?style=social&label=Stars`}
|
||||
/>
|
||||
</Link>
|
||||
|
|
Loading…
Reference in New Issue
Block a user