-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: [Rules > Detection rules][AXE-CORE]: Buttons must have discernible text #177273
Conversation
Pinging @elastic/security-solution (Team: SecuritySolution) |
@elasticmachine merge upstream |
Pinging @elastic/security-detections-response (Team:Detections and Resp) |
Pinging @elastic/security-detection-rule-management (Team:Detection Rule Management) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @alexwizp, left a few suggestions.
...ugins/security_solution/public/detection_engine/rule_details_ui/pages/rule_details/index.tsx
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@alexwizp Thank you for addressing my suggestions and adding unit tests. One last comment and we'll be ready to merge it 👍
x-pack/plugins/security_solution/public/detections/components/rules/rule_switch/index.tsx
Outdated
Show resolved
Hide resolved
💛 Build succeeded, but was flaky
Failed CI StepsMetrics [docs]Module Count
Async chunks
History
To update your PR or re-run it, just comment with: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the fixes @alexwizp. LGTM 👍
…le text (elastic#177273) Closes: elastic/security-team#8566 Closes: elastic/security-team#8569 ## Description The `<RuleSwitch />` component is currently flagged by the axe browser plugin for lacking text or an accessible label in its button switch. This pull request introduces support for the addition of the `aria-label` attribute to address this issue. Additionally, adjustments are made in two instances where this component is utilized within the codebase. ## Screens ### Axe report  ### A11y label  (cherry picked from commit 3db4a8f)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
… discernible text (#177273) (#177636) # Backport This will backport the following commits from `main` to `8.13`: - [fix: [Rules > Detection rules][AXE-CORE]: Buttons must have discernible text (#177273)](#177273) <!--- 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-02-22T18:33:10Z","message":"fix: [Rules > Detection rules][AXE-CORE]: Buttons must have discernible text (#177273)\n\nCloses: https://github.com/elastic/security-team/issues/8566\r\nCloses: https://github.com/elastic/security-team/issues/8569\r\n\r\n## Description\r\nThe `<RuleSwitch />` component is currently flagged by the axe browser\r\nplugin for lacking text or an accessible label in its button switch.\r\nThis pull request introduces support for the addition of the\r\n`aria-label` attribute to address this issue. Additionally, adjustments\r\nare made in two instances where this component is utilized within the\r\ncodebase.\r\n\r\n## Screens \r\n\r\n### Axe report \r\n\r\n\r\n\r\n### A11y label \r\n\r\n","sha":"3db4a8fa98b0e6968d40476505b6497559682fe5","branchLabelMapping":{"^v8.14.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:Detections and Resp","Team: SecuritySolution","Feature:Rule Management","Team:Detection Rule Management","Feature:Rule Details","v8.13.0","v8.14.0"],"title":"fix: [Rules > Detection rules][AXE-CORE]: Buttons must have discernible text","number":177273,"url":"https://github.com/elastic/kibana/pull/177273","mergeCommit":{"message":"fix: [Rules > Detection rules][AXE-CORE]: Buttons must have discernible text (#177273)\n\nCloses: https://github.com/elastic/security-team/issues/8566\r\nCloses: https://github.com/elastic/security-team/issues/8569\r\n\r\n## Description\r\nThe `<RuleSwitch />` component is currently flagged by the axe browser\r\nplugin for lacking text or an accessible label in its button switch.\r\nThis pull request introduces support for the addition of the\r\n`aria-label` attribute to address this issue. Additionally, adjustments\r\nare made in two instances where this component is utilized within the\r\ncodebase.\r\n\r\n## Screens \r\n\r\n### Axe report \r\n\r\n\r\n\r\n### A11y label \r\n\r\n","sha":"3db4a8fa98b0e6968d40476505b6497559682fe5"}},"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/177273","number":177273,"mergeCommit":{"message":"fix: [Rules > Detection rules][AXE-CORE]: Buttons must have discernible text (#177273)\n\nCloses: https://github.com/elastic/security-team/issues/8566\r\nCloses: https://github.com/elastic/security-team/issues/8569\r\n\r\n## Description\r\nThe `<RuleSwitch />` component is currently flagged by the axe browser\r\nplugin for lacking text or an accessible label in its button switch.\r\nThis pull request introduces support for the addition of the\r\n`aria-label` attribute to address this issue. Additionally, adjustments\r\nare made in two instances where this component is utilized within the\r\ncodebase.\r\n\r\n## Screens \r\n\r\n### Axe report \r\n\r\n\r\n\r\n### A11y label \r\n\r\n","sha":"3db4a8fa98b0e6968d40476505b6497559682fe5"}}]}] BACKPORT--> Co-authored-by: Alexey Antonov <alexwizp@gmail.com>
…le text (elastic#177273) Closes: elastic/security-team#8566 Closes: elastic/security-team#8569 ## Description The `<RuleSwitch />` component is currently flagged by the axe browser plugin for lacking text or an accessible label in its button switch. This pull request introduces support for the addition of the `aria-label` attribute to address this issue. Additionally, adjustments are made in two instances where this component is utilized within the codebase. ## Screens ### Axe report  ### A11y label 
Closes: https://github.com/elastic/security-team/issues/8566
Closes: https://github.com/elastic/security-team/issues/8569
Description
The
<RuleSwitch />
component is currently flagged by the axe browser plugin for lacking text or an accessible label in its button switch. This pull request introduces support for the addition of thearia-label
attribute to address this issue. Additionally, adjustments are made in two instances where this component is utilized within the codebase.Screens
Axe report
A11y label