fix: [Rules > Shared exception lists][AXE-CORE]: Interactive controls must not be nested#178023
Merged
alexwizp merged 8 commits intoelastic:mainfrom Mar 14, 2024
Merged
fix: [Rules > Shared exception lists][AXE-CORE]: Interactive controls must not be nested#178023alexwizp merged 8 commits intoelastic:mainfrom
alexwizp merged 8 commits intoelastic:mainfrom
Conversation
… must not be nested Closes: elastic/security-team#8611
Contributor
Author
|
/ci |
Contributor
Author
|
/ci |
Contributor
|
Pinging @elastic/security-solution (Team: SecuritySolution) |
Contributor
|
Pinging @elastic/security-detection-rule-management (Team:Detection Rule Management) |
rylnd
requested changes
Mar 13, 2024
Contributor
|
Pinging @elastic/security-detections-response (Team:Detections and Resp) |
Contributor
|
Pinging @elastic/security-detection-engine (Team:Detection Engine) |
rylnd
approved these changes
Mar 14, 2024
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]Async chunks
History
To update your PR or re-run it, just comment with: |
kibanamachine
pushed a commit
to kibanamachine/kibana
that referenced
this pull request
Mar 14, 2024
… must not be nested (elastic#178023) Closes: elastic/security-team#8611 ## Description The [axe browser plugin](https://deque.com/axe) is reporting a nested button (interactive control)in the shared exception list accordion(s). The accordion has a button to open/close and a link to the list detail view. Screenshot attached below. ### Steps to recreate 1. Open the Security Dashboards, then click Rules > Shared Exception Lists 2. Run an axe browser scan in Chrome, Edge, or Firefox 3. Verify the nested control error ### What was done? 1. Solution proposed by EUI team was applied. See elastic/eui#7545 2. The component `ExceptionsListCard` has been slightly changed to make it more responsive. Before: After: https://github.com/elastic/kibana/assets/20072247/dd6c6681-980c-40ed-98cf-29a71f896bc2 ### Screen #### AXE Report  (cherry picked from commit b90e215)
Contributor
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
kibanamachine
added a commit
that referenced
this pull request
Mar 14, 2024
…e controls must not be nested (#178023) (#178754) # Backport This will backport the following commits from `main` to `8.13`: - [fix: [Rules > Shared exception lists][AXE-CORE]: Interactive controls must not be nested (#178023)](#178023) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Alexey Antonov","email":"alexwizp@gmail.com"},"sourceCommit":{"committedDate":"2024-03-14T16:02:50Z","message":"fix: [Rules > Shared exception lists][AXE-CORE]: Interactive controls must not be nested (#178023)\n\nCloses: https://github.com/elastic/security-team/issues/8611\r\n\r\n## Description\r\n\r\nThe [axe browser plugin](https://deque.com/axe) is reporting a nested\r\nbutton (interactive control)in the shared exception list accordion(s).\r\nThe accordion has a button to open/close and a link to the list detail\r\nview. Screenshot attached below.\r\n\r\n### Steps to recreate\r\n\r\n1. Open the Security Dashboards, then click Rules > Shared Exception\r\nLists\r\n2. Run an axe browser scan in Chrome, Edge, or Firefox\r\n3. Verify the nested control error\r\n\r\n### What was done? \r\n\r\n1. Solution proposed by EUI team was applied. See\r\nhttps://github.com/elastic/eui/issues/7545\r\n2. The component `ExceptionsListCard` has been slightly changed to make\r\nit more responsive.\r\n Before: \r\n\r\n After: \r\n\r\n\r\nhttps://github.com/elastic/kibana/assets/20072247/dd6c6681-980c-40ed-98cf-29a71f896bc2\r\n\r\n\r\n\r\n\r\n### Screen\r\n\r\n#### AXE Report \r\n\r\n\r\n","sha":"b90e215d9b4a1462c8cb3be692bcc44edda1e6b8","branchLabelMapping":{"^v8.14.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:Detections and Resp","Team: SecuritySolution","Feature:Rule Exceptions","Team:Detection Engine","v8.13.0","v8.14.0"],"title":"fix: [Rules > Shared exception lists][AXE-CORE]: Interactive controls must not be nested","number":178023,"url":"https://github.com/elastic/kibana/pull/178023","mergeCommit":{"message":"fix: [Rules > Shared exception lists][AXE-CORE]: Interactive controls must not be nested (#178023)\n\nCloses: https://github.com/elastic/security-team/issues/8611\r\n\r\n## Description\r\n\r\nThe [axe browser plugin](https://deque.com/axe) is reporting a nested\r\nbutton (interactive control)in the shared exception list accordion(s).\r\nThe accordion has a button to open/close and a link to the list detail\r\nview. Screenshot attached below.\r\n\r\n### Steps to recreate\r\n\r\n1. Open the Security Dashboards, then click Rules > Shared Exception\r\nLists\r\n2. Run an axe browser scan in Chrome, Edge, or Firefox\r\n3. Verify the nested control error\r\n\r\n### What was done? \r\n\r\n1. Solution proposed by EUI team was applied. See\r\nhttps://github.com/elastic/eui/issues/7545\r\n2. The component `ExceptionsListCard` has been slightly changed to make\r\nit more responsive.\r\n Before: \r\n\r\n After: \r\n\r\n\r\nhttps://github.com/elastic/kibana/assets/20072247/dd6c6681-980c-40ed-98cf-29a71f896bc2\r\n\r\n\r\n\r\n\r\n### Screen\r\n\r\n#### AXE Report \r\n\r\n\r\n","sha":"b90e215d9b4a1462c8cb3be692bcc44edda1e6b8"}},"sourceBranch":"main","suggestedTargetBranches":["8.13"],"targetPullRequestStates":[{"branch":"8.13","label":"v8.13.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.14.0","branchLabelMappingKey":"^v8.14.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/178023","number":178023,"mergeCommit":{"message":"fix: [Rules > Shared exception lists][AXE-CORE]: Interactive controls must not be nested (#178023)\n\nCloses: https://github.com/elastic/security-team/issues/8611\r\n\r\n## Description\r\n\r\nThe [axe browser plugin](https://deque.com/axe) is reporting a nested\r\nbutton (interactive control)in the shared exception list accordion(s).\r\nThe accordion has a button to open/close and a link to the list detail\r\nview. Screenshot attached below.\r\n\r\n### Steps to recreate\r\n\r\n1. Open the Security Dashboards, then click Rules > Shared Exception\r\nLists\r\n2. Run an axe browser scan in Chrome, Edge, or Firefox\r\n3. Verify the nested control error\r\n\r\n### What was done? \r\n\r\n1. Solution proposed by EUI team was applied. See\r\nhttps://github.com/elastic/eui/issues/7545\r\n2. The component `ExceptionsListCard` has been slightly changed to make\r\nit more responsive.\r\n Before: \r\n\r\n After: \r\n\r\n\r\nhttps://github.com/elastic/kibana/assets/20072247/dd6c6681-980c-40ed-98cf-29a71f896bc2\r\n\r\n\r\n\r\n\r\n### Screen\r\n\r\n#### AXE Report \r\n\r\n\r\n","sha":"b90e215d9b4a1462c8cb3be692bcc44edda1e6b8"}}]}] BACKPORT--> Co-authored-by: Alexey Antonov <alexwizp@gmail.com>
rylnd
added a commit
to rylnd/kibana
that referenced
this pull request
Jan 17, 2025
These styles (particularly the box-shadow) were being incorrectly applied to all child elements, which caused the inner Comments accordion to be styled incorrectly. I failed to catch this when it was introduced in elastic#178023.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Closes: https://github.com/elastic/security-team/issues/8611
Description
The axe browser plugin is reporting a nested button (interactive control)in the shared exception list accordion(s). The accordion has a button to open/close and a link to the list detail view. Screenshot attached below.
Steps to recreate
What was done?
Solution proposed by EUI team was applied. See [EuiAccordion] Do not set
arrowDisplaytononeif thebuttonElementis adiv. eui#7545The component
ExceptionsListCardhas been slightly changed to make it more responsive.Before:
Screen.Recording.2024-03-13.at.12.22.47.mov
Screen
AXE Report