Skip to content
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const SectionError: React.FunctionComponent<Props> = ({
} = error;

return (
<EuiCallOut title={title} color="danger" iconType="warning" {...rest}>
<EuiCallOut title={title} role="alert" color="danger" iconType="warning" {...rest}>
{cause ? message || errorString : <p>{message || errorString}</p>}
{cause && (
<Fragment>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -529,6 +529,7 @@ export const PolicyStepLogistics: React.FunctionComponent<StepProps> = ({
defaultMessage="Repository not found"
/>
}
role="alert"
color="danger"
iconType="warning"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,7 @@ export const RepositoryFormStepOne: React.FunctionComponent<Props> = ({
defaultMessage="Fix errors before continuing."
/>
}
role="alert"
color="danger"
data-test-subj="repositoryFormError"
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ export const RepositoryFormStepTwo: React.FunctionComponent<Props> = ({
defaultMessage="Fix errors before continuing."
/>
}
role="alert"
color="danger"
iconType="cross"
data-test-subj="repositoryFormError"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import {
EuiSpacer,
EuiText,
EuiCallOut,
useGeneratedHtmlId,
} from '@elastic/eui';

import { useCore, useServices, useToastNotifications } from '../app_context';
Expand All @@ -45,6 +46,7 @@ export const RetentionSettingsUpdateModalProvider: React.FunctionComponent<Props
const { i18n } = useServices();
const { docLinks } = useCore();
const toastNotifications = useToastNotifications();
const modalTitleId = useGeneratedHtmlId();

const [retentionSchedule, setRetentionSchedule] = useState<string>(DEFAULT_RETENTION_SCHEDULE);
const [isModalOpen, setIsModalOpen] = useState<boolean>(false);
Expand Down Expand Up @@ -128,9 +130,9 @@ export const RetentionSettingsUpdateModalProvider: React.FunctionComponent<Props
}

return (
<EuiModal onClose={closeModal}>
<EuiModal onClose={closeModal} aria-labelledby={modalTitleId}>
<EuiModalHeader>
<EuiModalHeaderTitle>
<EuiModalHeaderTitle id={modalTitleId}>
{isEditing ? (
<FormattedMessage
id="xpack.snapshotRestore.policyForm.stepRetention.policyUpdateRetentionEditTitle"
Expand All @@ -155,6 +157,7 @@ export const RetentionSettingsUpdateModalProvider: React.FunctionComponent<Props
defaultMessage="Error saving retention schedule"
/>
}
role="alert"
color="danger"
iconType="warning"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ export const PolicyRetentionSchedule: React.FunctionComponent<Props> = ({
defaultMessage="Run retention now"
/>
}
disableScreenReaderOutput
>
<EuiButtonIcon
iconType="play"
Expand Down Expand Up @@ -108,6 +109,7 @@ export const PolicyRetentionSchedule: React.FunctionComponent<Props> = ({
defaultMessage="Edit retention schedule"
/>
}
disableScreenReaderOutput
>
<EuiButtonIcon
iconType="pencil"
Expand Down Expand Up @@ -254,6 +256,7 @@ export const PolicyRetentionSchedule: React.FunctionComponent<Props> = ({
defaultMessage="Error fetching retention schedule"
/>
}
role="alert"
color="danger"
iconType="warning"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ export const SnapshotSearchBar: React.FunctionComponent<Props> = ({
<EuiCallOut
data-test-subj="snapshotListSearchError"
iconType="warning"
role="alert"
color="danger"
title={
<FormattedMessage
Expand Down