Skip to content

Commit

Permalink
fix: [Stateful: Home page] Missing information of Store this API key …
Browse files Browse the repository at this point in the history
…section first time (elastic#198253)

Closes: elastic#195382
Closes: elastic#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 elastic#195366

## Screen:

https://github.com/user-attachments/assets/3f7707e4-5cc4-451b-9e5c-372e2e7dab81
(cherry picked from commit 92ae754)
  • Loading branch information
alexwizp committed Nov 5, 2024
1 parent d4d8b98 commit 1023a59
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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', {
Expand Down

0 comments on commit 1023a59

Please sign in to comment.