Skip to content

Commit

Permalink
[Discover] Replace EuiTooltip by native title for better performance (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
kertal authored Jun 9, 2020
1 parent 5258a9b commit 6a9dbbc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* under the License.
*/
import React from 'react';
import { EuiButton, EuiToolTip, EuiText } from '@elastic/eui';
import { EuiButton, EuiText } from '@elastic/eui';
import { i18n } from '@kbn/i18n';
import { DiscoverFieldDetails } from './discover_field_details';
import { FieldIcon } from '../../../../../kibana_react/public';
Expand Down Expand Up @@ -125,16 +125,14 @@ export function DiscoverField({
/>
</span>
<span className="dscSidebarField__name eui-textTruncate">
<EuiToolTip
position="top"
content={field.name}
delay="long"
anchorClassName="eui-textTruncate"
<EuiText
size="xs"
data-test-subj={`field-${field.name}`}
className="eui-textTruncate"
title={field.name}
>
<EuiText size="xs" data-test-subj={`field-${field.name}`} className="eui-textTruncate">
{useShortDots ? shortenDottedString(field.name) : field.displayName}
</EuiText>
</EuiToolTip>
{useShortDots ? shortenDottedString(field.name) : field.displayName}
</EuiText>
</span>
<span>
{field.name !== '_source' && !selected && (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@
*/
.dscSidebarItem__action {
opacity: 0; /* 1 */
transition: none;

&:focus {
opacity: 1; /* 2 */
Expand Down

0 comments on commit 6a9dbbc

Please sign in to comment.