Skip to content

Commit

Permalink
alt tag
Browse files Browse the repository at this point in the history
  • Loading branch information
TravisL12 committed Oct 5, 2020
1 parent 6442576 commit 9258a36
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/PlayerCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,12 @@ const PlayerCard = ({ player, close }) => {
!!player && (
<PlayerCardContainer className="player-modal" onClick={close}>
<div className="player-image">
<img src={`${process.env.PUBLIC_URL}/player_pics/${player.image}`} />
<img
alt={`${player.name} in all ${
player.gender === 'M' ? 'his' : 'her'
} glory`}
src={`${process.env.PUBLIC_URL}/player_pics/${player.image}`}
/>
</div>
<div className="player-skills">
<div className="bat-throw-pos">
Expand Down

0 comments on commit 9258a36

Please sign in to comment.