Skip to content

Commit

Permalink
adds tooltip (#122601)
Browse files Browse the repository at this point in the history
Co-authored-by: Ece Ozalp <ece.ozalp@elastic.co>
(cherry picked from commit c488d57)
  • Loading branch information
ecezalp authored and kibanamachine committed Jan 11, 2022
1 parent 2503fa6 commit 1d6f83b
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/

import React, { useCallback } from 'react';
import { EuiButtonEmpty, EuiText } from '@elastic/eui';
import { EuiButtonEmpty, EuiText, EuiToolTip } from '@elastic/eui';
import { APP_UI_ID, SecurityPageName } from '../../../../common/constants';
import { useKibana } from '../../../common/lib/kibana';

Expand Down Expand Up @@ -34,8 +34,10 @@ export const NavigateToHost: React.FC<{ name: string }> = ({ name }): JSX.Elemen
[filterManager, name, navigateToApp]
);
return (
<EuiButtonEmpty color="text" onClick={goToHostPage} size="xs">
<EuiText size="s">{name}</EuiText>
</EuiButtonEmpty>
<EuiToolTip content={name} position="top">
<EuiButtonEmpty color="text" onClick={goToHostPage} size="xs">
<EuiText size="s">{name}</EuiText>
</EuiButtonEmpty>
</EuiToolTip>
);
};

0 comments on commit 1d6f83b

Please sign in to comment.