Skip to content

Commit

Permalink
Add description as title on tag badge (#97109) (#97410)
Browse files Browse the repository at this point in the history
  • Loading branch information
pgayvallet committed Apr 18, 2021
1 parent 0e6f5ef commit 27583f2
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 27583f2

Please sign in to comment.