fix: [Stateful: Home page] Missing information of Store this API key section first time (#198253)

Closes: #195382
Closes: #195366

## Description

All information which is accessible for the user should be announced
when the user navigates to the element first time (not only when he
reaches it second, third and so on time).

## What was changed?:

1. added `role="alert"` to correctly pronounce status update. Addind
role attribute also fixes #195366


## Screen:


https://github.com/user-attachments/assets/3f7707e4-5cc4-451b-9e5c-372e2e7dab81
This commit is contained in:
Alexey Antonov 2024-11-05 17:38:26 +02:00 committed by GitHub
parent 4036b36c1a
commit 92ae754ff9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -210,6 +210,7 @@ export const CreateApiKeyFlyout: React.FC<CreateApiKeyFlyoutProps> = ({ onClose
defaultMessage: 'Store this API key',
})}
titleSize="xs"
role="alert"
>
<EuiText>
{i18n.translate('xpack.enterpriseSearch.apiKey.apiKeyStepDescription', {