Skip to content
Merged
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ export const ProgressControls: FC<PropsWithChildren<ProgressControlProps>> = (pr
{progress === 1 ? (
<EuiFlexGroup gutterSize="xs" alignItems="center" responsive={false}>
<EuiFlexItem grow={false}>
<EuiIcon type="checkCircleFill" color={euiTheme.colors.success} />
<EuiIcon aria-hidden={true} type="checkCircleFill" color={euiTheme.colors.success} />
</EuiFlexItem>
<EuiFlexItem grow={false} data-test-subj="aiopsAnalysisComplete">
<small>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export const AnalysisExplanation: FC<Props> = ({ fileStatus, index }) => {
>
<EuiModalHeader>
<EuiModalHeaderTitle id={modalTitleId}>
<EuiIcon type="inspect" size={'l'} />{' '}
<EuiIcon aria-hidden={true} type="inspect" size={'l'} />{' '}
<FormattedMessage
id="xpack.fileUpload.explanationFlyout.title"
defaultMessage="Analysis explanation"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,15 +131,15 @@ export const FileClashIcon: FC<Props> = ({ fileClash }) => {
return (
<EuiToolTip content={getClashText(fileClash)}>
<EuiBadge color={euiTheme.colors.backgroundBaseDanger}>
<EuiIcon type="warning" color="danger" size="s" />
<EuiIcon aria-hidden={true} type="warning" color="danger" size="s" />
</EuiBadge>
</EuiToolTip>
);
case CLASH_ERROR_TYPE.WARNING:
return (
<EuiToolTip content={getClashText(fileClash)}>
<EuiBadge color={euiTheme.colors.backgroundBaseWarning}>
<EuiIcon type="warning" color="warning" size="s" />
<EuiIcon aria-hidden={true} type="warning" color="warning" size="s" />
</EuiBadge>
</EuiToolTip>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ export const ResultsLinks: FC<Props> = ({
<EuiFlexItem>
<EuiCard
hasBorder
icon={<EuiIcon size="xxl" type={`discoverApp`} />}
icon={<EuiIcon aria-hidden={true} size="xxl" type={`discoverApp`} />}
title={
<FormattedMessage
id="xpack.fileUpload.resultsLinks.viewIndexInDiscoverTitle"
Expand All @@ -197,7 +197,7 @@ export const ResultsLinks: FC<Props> = ({
<EuiFlexItem>
<EuiCard
hasBorder
icon={<EuiIcon size="xxl" type={`managementApp`} />}
icon={<EuiIcon aria-hidden={true} size="xxl" type={`managementApp`} />}
title={
<FormattedMessage
id="xpack.fileUpload.resultsLinks.indexManagementTitle"
Expand All @@ -213,7 +213,7 @@ export const ResultsLinks: FC<Props> = ({
<EuiFlexItem>
<EuiCard
hasBorder
icon={<EuiIcon size="xxl" type={`managementApp`} />}
icon={<EuiIcon aria-hidden={true} size="xxl" type={`managementApp`} />}
title={
<FormattedMessage
id="xpack.fileUpload.resultsLinks.dataViewManagementTitle"
Expand All @@ -229,7 +229,7 @@ export const ResultsLinks: FC<Props> = ({
<EuiFlexItem>
<EuiCard
hasBorder
icon={<EuiIcon size="xxl" type={`filebeatApp`} />}
icon={<EuiIcon aria-hidden={true} size="xxl" type={`filebeatApp`} />}
data-test-subj="fileDataVisFilebeatConfigLink"
title={
<FormattedMessage
Expand All @@ -247,7 +247,7 @@ export const ResultsLinks: FC<Props> = ({
<EuiFlexItem>
<EuiCard
hasBorder
icon={<EuiIcon size="xxl" type={`productRobot`} />}
icon={<EuiIcon aria-hidden={true} size="xxl" type={`productRobot`} />}
title={
<FormattedMessage
id="xpack.fileUpload.resultsLinks.agentBuilder"
Expand All @@ -265,7 +265,7 @@ export const ResultsLinks: FC<Props> = ({
<EuiFlexItem key={link.title}>
<EuiCard
hasBorder
icon={<EuiIcon size="xxl" type={link.icon} />}
icon={<EuiIcon aria-hidden={true} size="xxl" type={link.icon} />}
data-test-subj="fileDataVisLink"
title={link.title}
description={link.description}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const SELECT_PICKER_HEIGHT = '250px';
const NoFilterItems = () => {
return (
<EuiSelectableMessage>
<EuiIcon type="minusCircle" />
<EuiIcon aria-hidden={true} type="minusCircle" />
<EuiSpacer size="xs" />
<p>
<FormattedMessage
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { FormattedMessage } from '@kbn/i18n-react';
export const NotInDocsContent: FC = () => (
<Fragment>
<EuiText textAlign="center">
<EuiIcon type="warning" />
<EuiIcon aria-hidden={true} type="warning" />
</EuiText>
<EuiText textAlign="center" size={'xs'}>
<FormattedMessage
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import type { FC } from 'react';
export const NotSupportedContent: FC = () => (
<Fragment>
<EuiText textAlign="center">
<EuiIcon type="warning" />
<EuiIcon aria-hidden={true} type="warning" />
</EuiText>
<EuiText textAlign="center" size={'xs'}>
<FormattedMessage
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ export const ResultsLinks: FC<Props> = ({
<EuiFlexItem>
<EuiCard
hasBorder
icon={<EuiIcon size="xxl" type={`discoverApp`} />}
icon={<EuiIcon aria-hidden={true} size="xxl" type={`discoverApp`} />}
title={
<FormattedMessage
id="xpack.dataVisualizer.file.resultsLinks.viewIndexInDiscoverTitle"
Expand All @@ -219,7 +219,7 @@ export const ResultsLinks: FC<Props> = ({
<EuiFlexItem>
<EuiCard
hasBorder
icon={<EuiIcon size="xxl" type={`managementApp`} />}
icon={<EuiIcon aria-hidden={true} size="xxl" type={`managementApp`} />}
title={
<FormattedMessage
id="xpack.dataVisualizer.file.resultsLinks.indexManagementTitle"
Expand All @@ -235,7 +235,7 @@ export const ResultsLinks: FC<Props> = ({
<EuiFlexItem>
<EuiCard
hasBorder
icon={<EuiIcon size="xxl" type={`managementApp`} />}
icon={<EuiIcon aria-hidden={true} size="xxl" type={`managementApp`} />}
title={
<FormattedMessage
id="xpack.dataVisualizer.file.resultsLinks.dataViewManagementTitle"
Expand All @@ -251,7 +251,7 @@ export const ResultsLinks: FC<Props> = ({
<EuiFlexItem>
<EuiCard
hasBorder
icon={<EuiIcon size="xxl" type={`filebeatApp`} />}
icon={<EuiIcon aria-hidden={true} size="xxl" type={`filebeatApp`} />}
data-test-subj="fileDataVisFilebeatConfigLink"
title={
<FormattedMessage
Expand All @@ -269,7 +269,7 @@ export const ResultsLinks: FC<Props> = ({
<EuiFlexItem>
<EuiCard
hasBorder
icon={<EuiIcon size="xxl" type={`logoElasticsearch`} />}
icon={<EuiIcon aria-hidden={true} size="xxl" type={`logoElasticsearch`} />}
data-test-subj="fileDataVisFilebeatConfigLink"
title={
<FormattedMessage
Expand All @@ -288,7 +288,7 @@ export const ResultsLinks: FC<Props> = ({
<EuiFlexItem key={link.title}>
<EuiCard
hasBorder
icon={<EuiIcon size="xxl" type={link.icon} />}
icon={<EuiIcon aria-hidden={true} size="xxl" type={link.icon} />}
data-test-subj="fileDataVisLink"
title={link.title}
description={link.description}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export const DistinctValues = ({ showIcon, config }: Props) => {
className={'columnHeader__icon'}
/>
) : (
<EuiIcon type="database" size={'m'} className={'columnHeader__icon'} />
<EuiIcon aria-hidden={true} type="database" size={'m'} className={'columnHeader__icon'} />
)
) : null;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export const DocumentStat = ({ config, showIcon, totalCount }: Props) => {
size="m"
/>
) : (
<EuiIcon type="document" size={'m'} className={'columnHeader__icon'} />
<EuiIcon aria-hidden={true} type="document" size={'m'} className={'columnHeader__icon'} />
)
) : null;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,11 @@ const UnmemoizedDataVisualizerTable = <T extends DataVisualizerTableItem>({
name: (
<div className={'columnHeader__title'}>
{dimensions.showIcon ? (
<EuiIcon type={'chartBarVertical'} className={'columnHeader__icon'} />
<EuiIcon
aria-hidden={true}
type={'chartBarVertical'}
className={'columnHeader__icon'}
/>
) : null}
{i18n.translate('xpack.dataVisualizer.dataGrid.distributionsColumnName', {
defaultMessage: 'Distributions',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const EmbeddableNoResultsEmptyPrompt = () => (
})}
>
<EuiText size="xs" color="subdued">
<EuiIcon type="visualizeApp" size="m" color="subdued" />
<EuiIcon aria-hidden={true} type="visualizeApp" size="m" color="subdued" />
<EuiSpacer size="m" />
<FormattedMessage
id="xpack.dataVisualizer.index.embeddableNoResultsMessage"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export const ChangePointTypeFilter: FC<ChangePointTypeFilterProps> = ({ value, o
<EuiToolTip position="left" content={description}>
<EuiFlexGroup gutterSize={'s'} alignItems={'center'}>
<EuiFlexItem grow={false}>
<EuiIcon type="info" color={'primary'} />
<EuiIcon aria-hidden={true} type="info" color={'primary'} />
</EuiFlexItem>
<EuiFlexItem>{label}</EuiFlexItem>
</EuiFlexGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,13 @@ export const CategoryTable: FC<Props> = ({
{i18n.translate('xpack.aiops.logCategorization.column.tokens', {
defaultMessage: 'Tokens',
})}
<EuiIcon size="s" color="subdued" type="question" className="eui-alignTop" />
<EuiIcon
aria-hidden={true}
size="s"
color="subdued"
type="question"
className="eui-alignTop"
/>
</>
</EuiToolTip>
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const TableActionButton: FC<TableActionButtonProps> = ({
}) => {
const buttonContent = (
<>
<EuiIcon type={iconType} css={{ marginRight: '8px' }} />
<EuiIcon aria-hidden={true} type={iconType} css={{ marginRight: '8px' }} />
{label}
</>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,7 @@ export const useColumns = (
return (
<>
<EuiIcon
aria-hidden={true}
size="s"
color="subdued"
type={currentAnalysisType === LOG_RATE_ANALYSIS_TYPE.SPIKE ? 'sortUp' : 'sortDown'}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ const Details: FC<{
<EuiText size="xs">
{isInterimResult === true && (
<>
<EuiIcon type="warning" />
<EuiIcon type="warning" aria-hidden={true} />
<span
css={{
fontStyle: 'italic',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export function DescriptionCell({ actual, typical }) {
<EuiFlexGroup gutterSize="s" alignItems="center">
{iconType !== undefined && (
<EuiFlexItem grow={false}>
<EuiIcon type={iconType} size="s" />
<EuiIcon type={iconType} size="s" aria-hidden={true} />
</EuiFlexItem>
)}
<EuiFlexItem grow={false}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const RecognizedResult = ({ config, indexPattern, savedSearch }) => {
// if a logo is available, use that, otherwise display the id
// the logo should be a base64 encoded image or an eui icon
if (config.logo && config.logo.icon) {
logo = <EuiIcon type={config.logo.icon} size="xl" />;
logo = <EuiIcon type={config.logo.icon} size="xl" aria-hidden={true} />;
} else if (config.logo && config.logo.src) {
logo = <img alt="" src={config.logo.src} />;
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import type { FC } from 'react';
import React from 'react';

import { EuiIcon, EuiIconTip } from '@elastic/eui';
import { i18n } from '@kbn/i18n';
import type { AuditMessageBase } from '@kbn/ml-common-types/audit_message';

interface Props {
Expand Down Expand Up @@ -37,6 +38,15 @@ export const JobIcon: FC<Props> = ({ message, showTooltip = false }) => {
if (showTooltip) {
return <EuiIconTip content={message.text} position="bottom" type={icon} color={color} />;
} else {
return <EuiIcon type={icon} color={color} />;
return (
<EuiIcon
type={icon}
color={color}
aria-label={i18n.translate('xpack.ml.jobMessageIcon.ariaLabel', {
defaultMessage: '{level} message',
values: { level: message.level },
})}
/>
);
}
};
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export const AnomalyDetectionInfoButton: FC<Props> = ({
</EuiText>
</EuiFlexItem>
<EuiFlexItem grow={false}>
<EuiIcon type="boxesVertical" />
<EuiIcon type="boxesVertical" aria-hidden={true} />
</EuiFlexItem>
</EuiFlexGroup>
</EuiButton>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const BackToListPanel: FC = () => {
<Fragment>
<EuiCard
css={{ width: '300px' }}
icon={<EuiIcon size="xxl" type="listBullet" />}
icon={<EuiIcon size="xxl" type="listBullet" aria-hidden={true} />}
title={i18n.translate('xpack.ml.dataframe.analytics.create.analyticsListCardTitle', {
defaultMessage: 'Data Frame Analytics',
})}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export const JobType: FC<Props> = ({ type, setFormState }) => {
{(Object.keys(jobDetails) as Array<keyof typeof jobDetails>).map((jobType) => (
<EuiFlexItem key={jobType} grow={1}>
<EuiCard
icon={<EuiIcon size="xl" type={jobDetails[jobType].icon} />}
icon={<EuiIcon size="xl" type={jobDetails[jobType].icon} aria-hidden={true} />}
title={jobDetails[jobType].title}
description={jobDetails[jobType].helpText}
data-test-subj={`mlAnalyticsCreation-${jobType}-option${
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export const ValidationStepDetails: FC<{
<EuiText size="s">{validationSummary.success}</EuiText>
</EuiFlexItem>
<EuiFlexItem grow={false}>
<EuiIcon type="check" />
<EuiIcon type="check" aria-hidden={true} />
</EuiFlexItem>
</EuiFlexGroup>
</>
Expand All @@ -61,7 +61,7 @@ export const ValidationStepDetails: FC<{
<EuiText size="s">{validationSummary.warning}</EuiText>
</EuiFlexItem>
<EuiFlexItem grow={false}>
<EuiIcon type="warning" />
<EuiIcon type="warning" aria-hidden={true} />
</EuiFlexItem>
</EuiFlexGroup>
</>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const ViewResultsPanel: FC<Props> = ({ jobId, analysisType }) => {
<Fragment>
<EuiCard
css={{ width: `calc(${size.xxl} * 7.5)` }}
icon={<EuiIcon size="xxl" type="table" />}
icon={<EuiIcon size="xxl" type="table" aria-hidden={true} />}
title={i18n.translate('xpack.ml.dataframe.analytics.create.viewResultsCardTitle', {
defaultMessage: 'View Results',
})}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ interface DecisionPathChartProps {

const DECISION_PATH_MARGIN = 125;
const DECISION_PATH_ROW_HEIGHT = 10;
const AnnotationBaselineMarker = <EuiIcon type="dot" size="m" />;
const AnnotationBaselineMarker = <EuiIcon type="dot" size="m" aria-hidden={true} />;

export const DecisionPathChart = ({
decisionPathData,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ export const SeverityLegendControl: FC<SeverityControlProps> = ({
<EuiFlexGroup gutterSize="xs" alignItems="center" responsive={false}>
<EuiFlexItem grow={false}>
<EuiIcon
aria-hidden={true}
type={isSelected ? 'dot' : 'eyeSlash'}
color={isSelected ? severity.color : euiTheme.colors.textDisabled}
size={isSelected ? 'm' : 's'}
Expand Down
Loading
Loading