Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[8.x] fix: [Search:BehavioralAnalytics:Integration page]When generati…
…ng API key, button behind dialog modal is announced (#200560) (#201242) # Backport This will backport the following commits from `main` to `8.x`: - [fix: [Search:BehavioralAnalytics:Integration page]When generating API key, button behind dialog modal is announced (#200560)](#200560) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Alexey Antonov","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-11-21T16:42:09Z","message":"fix: [Search:BehavioralAnalytics:Integration page]When generating API key, button behind dialog modal is announced (#200560)\n\nCloses: #200305\r\n\r\n## Description\r\nElements which are behind dialogs shouldn't be announced as not to\r\nconfuse users, especially the ones using assistive technology.\r\n\r\n## Preconditions\r\nStateful Behavioral Analytics -> Integration page is opened.\r\nCollection is added.\r\n\r\n## What was changed: \r\n\r\nThis PR apply the similar with\r\n[#197212](#197212) changes\r\n\r\n1. Modal dialog was slightly updated to be more accessibility (a11y)\r\nfriendly:\r\n- To differentiate the two UI states, we now use two colors for the\r\npanel: primary for the initial state and success when the API key is\r\ngenerated.\r\n- An `EuiCallOut` with `role=\"alert\"` was added to announce status\r\nupdates for screen reader users.\r\n2. After creating an API key, the focus now moves to the Download API\r\nkey button.\r\n\r\n## Screen\r\n\r\n\r\nhttps://github.com/user-attachments/assets/3e72aeb5-34a2-43a6-b477-52a2f71b750a","sha":"76e9359d1b428961c79d8409d15255b747c839af","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Project:Accessibility","release_note:skip","v9.0.0","Team:Search","backport:prev-minor"],"title":"fix: [Search:BehavioralAnalytics:Integration page]When generating API key, button behind dialog modal is announced","number":200560,"url":"https://github.com/elastic/kibana/pull/200560","mergeCommit":{"message":"fix: [Search:BehavioralAnalytics:Integration page]When generating API key, button behind dialog modal is announced (#200560)\n\nCloses: #200305\r\n\r\n## Description\r\nElements which are behind dialogs shouldn't be announced as not to\r\nconfuse users, especially the ones using assistive technology.\r\n\r\n## Preconditions\r\nStateful Behavioral Analytics -> Integration page is opened.\r\nCollection is added.\r\n\r\n## What was changed: \r\n\r\nThis PR apply the similar with\r\n[#197212](#197212) changes\r\n\r\n1. Modal dialog was slightly updated to be more accessibility (a11y)\r\nfriendly:\r\n- To differentiate the two UI states, we now use two colors for the\r\npanel: primary for the initial state and success when the API key is\r\ngenerated.\r\n- An `EuiCallOut` with `role=\"alert\"` was added to announce status\r\nupdates for screen reader users.\r\n2. After creating an API key, the focus now moves to the Download API\r\nkey button.\r\n\r\n## Screen\r\n\r\n\r\nhttps://github.com/user-attachments/assets/3e72aeb5-34a2-43a6-b477-52a2f71b750a","sha":"76e9359d1b428961c79d8409d15255b747c839af"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/200560","number":200560,"mergeCommit":{"message":"fix: [Search:BehavioralAnalytics:Integration page]When generating API key, button behind dialog modal is announced (#200560)\n\nCloses: #200305\r\n\r\n## Description\r\nElements which are behind dialogs shouldn't be announced as not to\r\nconfuse users, especially the ones using assistive technology.\r\n\r\n## Preconditions\r\nStateful Behavioral Analytics -> Integration page is opened.\r\nCollection is added.\r\n\r\n## What was changed: \r\n\r\nThis PR apply the similar with\r\n[#197212](#197212) changes\r\n\r\n1. Modal dialog was slightly updated to be more accessibility (a11y)\r\nfriendly:\r\n- To differentiate the two UI states, we now use two colors for the\r\npanel: primary for the initial state and success when the API key is\r\ngenerated.\r\n- An `EuiCallOut` with `role=\"alert\"` was added to announce status\r\nupdates for screen reader users.\r\n2. After creating an API key, the focus now moves to the Download API\r\nkey button.\r\n\r\n## Screen\r\n\r\n\r\nhttps://github.com/user-attachments/assets/3e72aeb5-34a2-43a6-b477-52a2f71b750a","sha":"76e9359d1b428961c79d8409d15255b747c839af"}}]}] BACKPORT--> Co-authored-by: Alexey Antonov <[email protected]>
- Loading branch information