Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[8.13] fix: [Rules > Detection rules][AXE-CORE]: Buttons must have…
… discernible text (elastic#177273) (elastic#177636) # Backport This will backport the following commits from `main` to `8.13`: - [fix: [Rules > Detection rules][AXE-CORE]: Buttons must have discernible text (elastic#177273)](elastic#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":"[email protected]"},"sourceCommit":{"committedDate":"2024-02-22T18:33:10Z","message":"fix: [Rules > Detection rules][AXE-CORE]: Buttons must have discernible text (elastic#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![image](https://github.com/elastic/kibana/assets/20072247/36287d4f-fd98-4b26-b313-a39a72aefb81)\r\n\r\n### A11y label \r\n\r\n![image](https://github.com/elastic/kibana/assets/20072247/c61c9d0d-dd6e-4af2-9d43-04e86ad21954)","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 (elastic#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![image](https://github.com/elastic/kibana/assets/20072247/36287d4f-fd98-4b26-b313-a39a72aefb81)\r\n\r\n### A11y label \r\n\r\n![image](https://github.com/elastic/kibana/assets/20072247/c61c9d0d-dd6e-4af2-9d43-04e86ad21954)","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 (elastic#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![image](https://github.com/elastic/kibana/assets/20072247/36287d4f-fd98-4b26-b313-a39a72aefb81)\r\n\r\n### A11y label \r\n\r\n![image](https://github.com/elastic/kibana/assets/20072247/c61c9d0d-dd6e-4af2-9d43-04e86ad21954)","sha":"3db4a8fa98b0e6968d40476505b6497559682fe5"}}]}] BACKPORT--> Co-authored-by: Alexey Antonov <[email protected]>
- Loading branch information