Skip to content

Commit

Permalink
Merge pull request #71 from rpp31-fec-sriracha/fix-a
Browse files Browse the repository at this point in the history
Added alt attribute for improving accessibility
  • Loading branch information
MaxineSS authored Dec 4, 2021
2 parents ccf657b + 8e1f62e commit b788863
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/src/components/Questions/AnswerEntry.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ const AnswerEntry = ({ answer }) => {
<div className="A-body">{answer.body}</div>
<div className="photo-list" >
{answer.photos.map((photo, i) => (photo.includes('ucare')) ?
<img className="photos" key={i} src={`${photo}-/preview/300x300/-/quality/lighter/-/format/webp/`} onClick={handleimageclick}></img>
: <img className="photos" key={i} src={photo} onClick={handleimageclick}></img>
<img alt="answer" className="photos" key={i} src={`${photo}-/preview/300x300/-/quality/lighter/-/format/webp/`} onClick={handleimageclick}></img>
: <img alt="answer" className="photos" key={i} src={photo} onClick={handleimageclick}></img>
)}
{isOpen ? <ImageModal isOpen={isOpen} closeModal={closeModal} src={src}></ImageModal> : null}
</div>
Expand Down

0 comments on commit b788863

Please sign in to comment.