Skip to content

Commit

Permalink
Add description as title on tag badge (elastic#97109)
Browse files Browse the repository at this point in the history
  • Loading branch information
pgayvallet authored and madirey committed May 11, 2021
1 parent 420dfc4 commit b185765
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,9 @@ export interface TagBadgeProps {
* The badge representation of a Tag, which is the default display to be used for them.
*/
export const TagBadge: FC<TagBadgeProps> = ({ tag }) => {
return <EuiBadge color={tag.color}>{tag.name}</EuiBadge>;
return (
<EuiBadge color={tag.color} title={tag.description}>
{tag.name}
</EuiBadge>
);
};

0 comments on commit b185765

Please sign in to comment.