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

Commit

Permalink
fix: reverts alt in Icon
Browse files Browse the repository at this point in the history
  • Loading branch information
paschalidi committed Apr 19, 2019
1 parent c4fb3ad commit de2fc39
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/Icon/Icon.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ const Icon = ({
const svgContent = icon ? svgShapes(icon.svgData) : '';

return (
<svg {...props} aria-label={description}>
<svg {...props} aria-label={description} alt={description}>
<title>
{typeof iconTitle === 'undefined' ? description : iconTitle}
</title>
Expand Down Expand Up @@ -246,6 +246,7 @@ Icon.propTypes = {
Icon.defaultProps = {
fillRule: 'evenodd',
role: 'img',
description: 'Provide a description that will be used as the title',
};

export { icons };
Expand Down

0 comments on commit de2fc39

Please sign in to comment.