File tree Expand file tree Collapse file tree
x-pack/legacy/plugins/siem/public/pages/case/components Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ const ConfigureCaseButtonComponent: React.FC<ConfigureCaseButtonProps> = ({
3131 href = { getConfigureCasesUrl ( urlSearch ) }
3232 iconType = "controlsHorizontal"
3333 isDisabled = { isDisabled }
34+ aria-label = { label }
3435 >
3536 { label }
3637 </ EuiButton >
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ export const TagList = React.memo(
6666 < EuiFlexItem grow = { false } >
6767 < EuiButtonIcon
6868 isDisabled = { disabled }
69- aria-label = { 'tags' }
69+ aria-label = { i18n . EDIT_TAGS_ARIA }
7070 iconType = { 'pencil' }
7171 onClick = { setIsEditTags . bind ( null , true ) }
7272 />
Original file line number Diff line number Diff line change 55 */
66
77import React , { useCallback } from 'react' ;
8+ import { isEmpty } from 'lodash/fp' ;
9+
810import {
911 EuiButtonIcon ,
1012 EuiText ,
@@ -15,9 +17,10 @@ import {
1517 EuiLoadingSpinner ,
1618 EuiToolTip ,
1719} from '@elastic/eui' ;
20+
1821import styled , { css } from 'styled-components' ;
19- import { ElasticUser } from '../../../../containers/case/types' ;
2022
23+ import { ElasticUser } from '../../../../containers/case/types' ;
2124import * as i18n from './translations' ;
2225
2326interface UserListProps {
@@ -52,7 +55,7 @@ const renderUsers = (
5255 < MyAvatar name = { fullName ? fullName : username ?? '' } />
5356 </ EuiFlexItem >
5457 < EuiFlexItem >
55- < EuiToolTip position = "top" content = { < p > { fullName ?? username } </ p > } >
58+ < EuiToolTip position = "top" content = { < p > { fullName ? fullName : username ?? '' } </ p > } >
5659 < p >
5760 < strong >
5861 < small data-test-subj = "case-view-username" > { username } </ small >
@@ -67,8 +70,8 @@ const renderUsers = (
6770 data-test-subj = "user-list-email-button"
6871 onClick = { handleSendEmail . bind ( null , email ) }
6972 iconType = "email"
70- aria-label = "email"
71- isDisabled = { email == null }
73+ aria-label = { i18n . SEND_EMAIL_ARIA ( fullName ? fullName : username ?? '' ) }
74+ isDisabled = { isEmpty ( email ) }
7275 />
7376 </ EuiFlexItem >
7477 </ MyFlexGroup >
You can’t perform that action at this time.
0 commit comments