Add description as title on tag badge (#97109) (#97410)

This commit is contained in:
Pierre Gayvallet 2021-04-18 22:55:51 +02:00 committed by GitHub
parent 0e6f5ef917
commit 27583f24f9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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>
);
};