Skip to content
This repository has been archived by the owner on Feb 27, 2020. It is now read-only.

Commit

Permalink
fix(tag-list): adds icon title and description props for i18n (#92)
Browse files Browse the repository at this point in the history
* fix(tag-list): adds icon title and description props for i18n

* fix(tag-list): updated these to required props
  • Loading branch information
electrostaticfleece authored and zeusorion committed Sep 16, 2019
1 parent d2ae99e commit f77c4c0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/components/TagList/TagList.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ export default class TagList extends Component {
})
).isRequired,
className: PropTypes.string,
iconTitle: PropTypes.string.isRequired,
iconDescription: PropTypes.string.isRequired,
isEditable: PropTypes.oneOf(['always', 'never', 'on-hover']),
onIconClick: PropTypes.func,
counterTagClassName: PropTypes.string,
Expand Down Expand Up @@ -139,6 +141,8 @@ export default class TagList extends Component {
maxCharacters,
maxCharactersTooltip,
maxTagsTooltip,
iconTitle,
iconDescription,
...rest
} = this.props;

Expand Down Expand Up @@ -182,8 +186,8 @@ export default class TagList extends Component {
<Icon
name="edit--glyph"
className="bx--tag-list--edit--icon"
title="edit icon"
description="click to edit tags"
title={iconTitle}
description={iconDescription}
/>
</button>
}
Expand Down

0 comments on commit f77c4c0

Please sign in to comment.