forked from elastic/kibana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: [Security:Rules:SharedExceptionList] The toggle button for linki…
…ng a rule on add rule exception panel is missing discernible text (elastic#205600) Closes: elastic#204667 ## Summary The toggle button for linking to a rule on Add rule exception panel is missing discernible text **Preconditions** Security -> Rules->Shared exceptions ->Add rule exception panel is open ## Changes made: 1. Added 'label' attribute for **EuiSwitch** ### Screen ![image](https://github.com/user-attachments/assets/9714112b-b402-43c6-9b62-388f94079b33)
- Loading branch information
Showing
2 changed files
with
24 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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
17 changes: 17 additions & 0 deletions
17
...ceptions/components/flyout_components/add_to_rules_table/link_rule_switch/translations.ts
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0; you may not use this file except in compliance with the Elastic License | ||
* 2.0. | ||
*/ | ||
|
||
import { i18n } from '@kbn/i18n'; | ||
|
||
export const LINK_SWITCH_ARIA_LABEL = (name: string) => | ||
i18n.translate( | ||
'xpack.securitySolution.rule_exceptions.flyoutComponents.addToRulesTableSelection.linkSwitch.ariaLabel', | ||
{ | ||
values: { name }, | ||
defaultMessage: 'Link "{name}"', | ||
} | ||
); |