mirror of
https://github.com/elastic/kibana.git
synced 2025-06-27 10:40:07 -04:00
[a11y][ml] fix screen reader not reading tooltip p-value (#224666)
## Summary This PR fixes [[ML] Change point detection: p-value tooltip is not announced because lack of focus](https://github.com/elastic/kibana/issues/216545) issue. --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
parent
6cea1b0b6a
commit
b0704474f0
1 changed files with 9 additions and 17 deletions
|
@ -8,9 +8,7 @@
|
|||
import {
|
||||
EuiBadge,
|
||||
EuiEmptyPrompt,
|
||||
EuiIcon,
|
||||
EuiInMemoryTable,
|
||||
EuiToolTip,
|
||||
type DefaultItemAction,
|
||||
type EuiBasicTableColumn,
|
||||
} from '@elastic/eui';
|
||||
|
@ -181,21 +179,15 @@ export const ChangePointsTable: FC<ChangePointsTableProps> = ({
|
|||
id: 'pValue',
|
||||
'data-test-subj': 'aiopsChangePointPValue',
|
||||
field: 'p_value',
|
||||
name: (
|
||||
<EuiToolTip
|
||||
content={i18n.translate('xpack.aiops.changePointDetection.pValueTooltip', {
|
||||
defaultMessage:
|
||||
'Indicates how extreme the change is. Lower values indicate greater change.',
|
||||
})}
|
||||
>
|
||||
<span>
|
||||
{i18n.translate('xpack.aiops.changePointDetection.pValueLabel', {
|
||||
defaultMessage: 'p-value',
|
||||
})}
|
||||
<EuiIcon size="s" color="subdued" type="question" className="eui-alignTop" />
|
||||
</span>
|
||||
</EuiToolTip>
|
||||
),
|
||||
name: i18n.translate('xpack.aiops.changePointDetection.pValueColumn', {
|
||||
defaultMessage: 'p-value',
|
||||
}),
|
||||
nameTooltip: {
|
||||
content: i18n.translate('xpack.aiops.changePointDetection.pValueTooltip', {
|
||||
defaultMessage:
|
||||
'Indicates how extreme the change is. Lower values indicate greater change.',
|
||||
}),
|
||||
},
|
||||
sortable: true,
|
||||
truncateText: false,
|
||||
render: (pValue: ChangePointAnnotation['p_value']) =>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue