diff --git a/src/platform/plugins/shared/es_ui_shared/__packages_do_not_import__/authorization/components/section_error.tsx b/src/platform/plugins/shared/es_ui_shared/__packages_do_not_import__/authorization/components/section_error.tsx index 94f46896e0462..7c27c4c776c1c 100644 --- a/src/platform/plugins/shared/es_ui_shared/__packages_do_not_import__/authorization/components/section_error.tsx +++ b/src/platform/plugins/shared/es_ui_shared/__packages_do_not_import__/authorization/components/section_error.tsx @@ -30,7 +30,7 @@ export const SectionError: React.FunctionComponent = ({ } = error; return ( - + {cause ? message || errorString :

{message || errorString}

} {cause && ( diff --git a/x-pack/platform/plugins/private/snapshot_restore/public/application/components/policy_form/steps/step_logistics.tsx b/x-pack/platform/plugins/private/snapshot_restore/public/application/components/policy_form/steps/step_logistics.tsx index 36fd8c10f684b..5f23f1657e57b 100644 --- a/x-pack/platform/plugins/private/snapshot_restore/public/application/components/policy_form/steps/step_logistics.tsx +++ b/x-pack/platform/plugins/private/snapshot_restore/public/application/components/policy_form/steps/step_logistics.tsx @@ -529,6 +529,7 @@ export const PolicyStepLogistics: React.FunctionComponent = ({ defaultMessage="Repository not found" /> } + role="alert" color="danger" iconType="warning" > diff --git a/x-pack/platform/plugins/private/snapshot_restore/public/application/components/repository_form/step_one.tsx b/x-pack/platform/plugins/private/snapshot_restore/public/application/components/repository_form/step_one.tsx index 7649471f41a19..015868be6a1d6 100644 --- a/x-pack/platform/plugins/private/snapshot_restore/public/application/components/repository_form/step_one.tsx +++ b/x-pack/platform/plugins/private/snapshot_restore/public/application/components/repository_form/step_one.tsx @@ -352,6 +352,7 @@ export const RepositoryFormStepOne: React.FunctionComponent = ({ defaultMessage="Fix errors before continuing." /> } + role="alert" color="danger" data-test-subj="repositoryFormError" /> diff --git a/x-pack/platform/plugins/private/snapshot_restore/public/application/components/repository_form/step_two.tsx b/x-pack/platform/plugins/private/snapshot_restore/public/application/components/repository_form/step_two.tsx index 3845f2c8c7567..dc09bb171d11e 100644 --- a/x-pack/platform/plugins/private/snapshot_restore/public/application/components/repository_form/step_two.tsx +++ b/x-pack/platform/plugins/private/snapshot_restore/public/application/components/repository_form/step_two.tsx @@ -171,6 +171,7 @@ export const RepositoryFormStepTwo: React.FunctionComponent = ({ defaultMessage="Fix errors before continuing." /> } + role="alert" color="danger" iconType="cross" data-test-subj="repositoryFormError" diff --git a/x-pack/platform/plugins/private/snapshot_restore/public/application/components/retention_update_modal_provider.tsx b/x-pack/platform/plugins/private/snapshot_restore/public/application/components/retention_update_modal_provider.tsx index ac13c72abba8d..e0fa46bb3c016 100644 --- a/x-pack/platform/plugins/private/snapshot_restore/public/application/components/retention_update_modal_provider.tsx +++ b/x-pack/platform/plugins/private/snapshot_restore/public/application/components/retention_update_modal_provider.tsx @@ -21,6 +21,7 @@ import { EuiSpacer, EuiText, EuiCallOut, + useGeneratedHtmlId, } from '@elastic/eui'; import { useCore, useServices, useToastNotifications } from '../app_context'; @@ -45,6 +46,7 @@ export const RetentionSettingsUpdateModalProvider: React.FunctionComponent(DEFAULT_RETENTION_SCHEDULE); const [isModalOpen, setIsModalOpen] = useState(false); @@ -128,9 +130,9 @@ export const RetentionSettingsUpdateModalProvider: React.FunctionComponent + - + {isEditing ? ( } + role="alert" color="danger" iconType="warning" > diff --git a/x-pack/platform/plugins/private/snapshot_restore/public/application/sections/home/policy_list/policy_retention_schedule/policy_retention_schedule.tsx b/x-pack/platform/plugins/private/snapshot_restore/public/application/sections/home/policy_list/policy_retention_schedule/policy_retention_schedule.tsx index 97317cb360a2c..1bb837ef92b8f 100644 --- a/x-pack/platform/plugins/private/snapshot_restore/public/application/sections/home/policy_list/policy_retention_schedule/policy_retention_schedule.tsx +++ b/x-pack/platform/plugins/private/snapshot_restore/public/application/sections/home/policy_list/policy_retention_schedule/policy_retention_schedule.tsx @@ -79,6 +79,7 @@ export const PolicyRetentionSchedule: React.FunctionComponent = ({ defaultMessage="Run retention now" /> } + disableScreenReaderOutput > = ({ defaultMessage="Edit retention schedule" /> } + disableScreenReaderOutput > = ({ defaultMessage="Error fetching retention schedule" /> } + role="alert" color="danger" iconType="warning" > diff --git a/x-pack/platform/plugins/private/snapshot_restore/public/application/sections/home/snapshot_list/components/snapshot_search_bar.tsx b/x-pack/platform/plugins/private/snapshot_restore/public/application/sections/home/snapshot_list/components/snapshot_search_bar.tsx index 62b8859b60901..379d0f376a124 100644 --- a/x-pack/platform/plugins/private/snapshot_restore/public/application/sections/home/snapshot_list/components/snapshot_search_bar.tsx +++ b/x-pack/platform/plugins/private/snapshot_restore/public/application/sections/home/snapshot_list/components/snapshot_search_bar.tsx @@ -169,6 +169,7 @@ export const SnapshotSearchBar: React.FunctionComponent = ({