mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
fix: [Security:Manage:EntityAnalytics:EntityRiskScore] Entity Risk score on and off toggle button is missing discernible text on Entity Risk score page (#207362)
Closes: #205823 **Description** Entity Risk score on and off toggle button is missing discernible text on entity risk score page **Preconditions** Security -> Manage ->Entity Risk Score page **Steps to reproduce** 1. Open Entity Risk score page 2. Run axe-core through the page 3. Notice that Entity risk score on and off toggle button is missing discernible text which means assistive technologies won't know what to read. **Changes made** 1. `arial-label` attribute was set for `EuiSwitch` **Screen** <img width="1608" alt="image" src="https://github.com/user-attachments/assets/79754c08-9362-4095-81e2-7d0d65c67daf" />
This commit is contained in:
parent
49b28eda65
commit
d0c56b02fa
2 changed files with 10 additions and 1 deletions
|
@ -6,6 +6,7 @@
|
|||
*/
|
||||
|
||||
import React from 'react';
|
||||
|
||||
import {
|
||||
EuiFlexGroup,
|
||||
EuiFlexItem,
|
||||
|
@ -94,12 +95,13 @@ const RiskEngineStatusRow: React.FC<{
|
|||
</EuiFlexItem>
|
||||
<EuiFlexItem>
|
||||
<EuiSwitch
|
||||
label={''}
|
||||
label={i18n.RISK_ENGINE_STATUS_SWITCH_LABEL}
|
||||
data-test-subj="risk-score-switch"
|
||||
checked={currentRiskEngineStatus === RiskEngineStatusEnum.ENABLED}
|
||||
onChange={onSwitchClick}
|
||||
disabled={btnIsDisabled}
|
||||
aria-describedby={'switchRiskModule'}
|
||||
showLabel={false}
|
||||
/>
|
||||
</EuiFlexItem>
|
||||
</EuiFlexGroup>
|
||||
|
|
|
@ -202,6 +202,13 @@ export const RISK_ENGINE_NEXT_RUN_TIME = (timeInMinutes: string) =>
|
|||
values: { timeInMinutes },
|
||||
});
|
||||
|
||||
export const RISK_ENGINE_STATUS_SWITCH_LABEL = i18n.translate(
|
||||
'xpack.securitySolution.riskScore.riskEngineStatus',
|
||||
{
|
||||
defaultMessage: 'Risk engine status',
|
||||
}
|
||||
);
|
||||
|
||||
export const RUN_RISK_SCORE_ENGINE = i18n.translate('xpack.securitySolution.riskScore.runEngine', {
|
||||
defaultMessage: 'Run Engine',
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue