Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import {
EuiPanel,
EuiSpacer,
EuiSwitch,
EuiToolTip,
} from '@elastic/eui';
import { css } from '@emotion/react';
import _ from 'lodash';
Expand Down Expand Up @@ -104,8 +105,8 @@ export class IndexPrivilegeForm extends Component<Props, State> {
</EuiFlexItem>
{!this.props.isRoleReadOnly && (
<EuiFlexItem grow={false}>
<EuiButtonIcon
aria-label={
<EuiToolTip
content={
this.props.indexType === 'remote_indices'
? i18n.translate(
'xpack.security.management.editRole.indexPrivilegeForm.deleteRemoteIndexPrivilegeAriaLabel',
Expand All @@ -116,10 +117,25 @@ export class IndexPrivilegeForm extends Component<Props, State> {
{ defaultMessage: 'Delete index privilege' }
)
}
color={'danger'}
onClick={this.props.onDelete}
iconType={'trash'}
/>
disableScreenReaderOutput
>
<EuiButtonIcon
aria-label={
this.props.indexType === 'remote_indices'
? i18n.translate(
'xpack.security.management.editRole.indexPrivilegeForm.deleteRemoteIndexPrivilegeAriaLabel',
{ defaultMessage: 'Delete remote index privilege' }
)
: i18n.translate(
'xpack.security.management.editRole.indexPrivilegeForm.deleteIndexPrivilegeAriaLabel',
{ defaultMessage: 'Delete index privilege' }
)
}
color={'danger'}
onClick={this.props.onDelete}
iconType={'trash'}
/>
</EuiToolTip>
</EuiFlexItem>
)}
</EuiFlexGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import {
EuiFormRow,
EuiPanel,
EuiSpacer,
EuiToolTip,
} from '@elastic/eui';
import { css } from '@emotion/react';
import React, { Fragment, useCallback } from 'react';
Expand Down Expand Up @@ -165,16 +166,24 @@ export const RemoteClusterPrivilegesForm: React.FunctionComponent<Props> = ({
</EuiFlexItem>
{!isRoleReadOnly && (
<EuiFlexItem grow={false}>
<EuiButtonIcon
aria-label={i18n.translate(
<EuiToolTip
content={i18n.translate(
'xpack.security.management.editRole.remoteClusterPrivilegeForm.deleteRemoteClusterPrivilegeAriaLabel',
{ defaultMessage: 'Delete remote cluster privilege' }
)}
color="danger"
onClick={onDelete}
iconType="trash"
data-test-subj={`deleteRemoteClusterPrivilegesButton${formIndex}`}
/>
disableScreenReaderOutput
>
<EuiButtonIcon
aria-label={i18n.translate(
'xpack.security.management.editRole.remoteClusterPrivilegeForm.deleteRemoteClusterPrivilegeAriaLabel',
{ defaultMessage: 'Delete remote cluster privilege' }
)}
color="danger"
onClick={onDelete}
iconType="trash"
data-test-subj={`deleteRemoteClusterPrivilegesButton${formIndex}`}
/>
</EuiToolTip>
</EuiFlexItem>
)}
</EuiFlexGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import {
EuiSuperSelect,
EuiSwitch,
EuiText,
EuiTextTruncate,
useEuiTheme,
} from '@elastic/eui';
import { css } from '@emotion/react';
Expand Down Expand Up @@ -172,9 +173,7 @@ export const SpaceCopyResultDetails = (props: Props) => {
`}
>
<EuiText size="s">
<p className="eui-textTruncate" title={name}>
{name}
</p>
<EuiTextTruncate text={name} />
</EuiText>
</EuiFlexItem>
{switchProps.show && (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import {
EuiHorizontalRule,
EuiSpacer,
EuiText,
EuiToolTip,
useEuiTheme,
} from '@elastic/eui';
import { css } from '@emotion/react';
Expand Down Expand Up @@ -77,19 +78,26 @@ export const SolutionViewSwitchCalloutInternal = ({
</EuiText>
</EuiFlexItem>
<EuiFlexItem grow={false}>
<EuiButtonIcon
data-test-subj="solutionViewSwitchCalloutDismissButton"
iconType="cross"
size="xs"
color="text"
aria-label={i18n.translate(
'xpack.spaces.solutionViewSwitch.callout.dismissButton',
{
defaultMessage: 'Dismiss',
}
)}
onClick={onDismiss}
/>
<EuiToolTip
content={i18n.translate('xpack.spaces.solutionViewSwitch.callout.dismissButton', {
defaultMessage: 'Dismiss',
})}
disableScreenReaderOutput
>
<EuiButtonIcon
data-test-subj="solutionViewSwitchCalloutDismissButton"
iconType="cross"
size="xs"
color="text"
aria-label={i18n.translate(
'xpack.spaces.solutionViewSwitch.callout.dismissButton',
{
defaultMessage: 'Dismiss',
}
)}
onClick={onDismiss}
/>
</EuiToolTip>
</EuiFlexItem>
</EuiFlexGroup>
<EuiSpacer size="s" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* 2.0.
*/

import { EuiCard, EuiLoadingSpinner, EuiTextColor, useEuiTheme } from '@elastic/eui';
import { EuiCard, EuiLoadingSpinner, EuiTextColor, EuiToolTip, useEuiTheme } from '@elastic/eui';
import { css } from '@emotion/react';
import React, { lazy, Suspense } from 'react';

Expand Down Expand Up @@ -65,9 +65,11 @@ function renderSpaceDescription(space: Space) {
}

return (
<EuiTextColor color="subdued" title={description} className="eui-textBreakWord">
{description}
</EuiTextColor>
<EuiToolTip content={space.description}>
<EuiTextColor color="subdued" className="eui-textBreakWord">
{description}
</EuiTextColor>
</EuiToolTip>
);
}

Expand Down
Loading