File tree 1 file changed +9
-5
lines changed
src/lib/components/statusicon
1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -26,26 +26,30 @@ export const StatusIcon = ({ status }: { status: Status }) => {
26
26
return {
27
27
color : 'statusHealthy' ,
28
28
name : 'Check-circle' ,
29
- label : 'Healthy' ,
29
+ label : 'Healthy status icon ' ,
30
30
} ;
31
31
32
32
case STATUS_WARNING :
33
33
return {
34
34
color : 'statusWarning' ,
35
35
name : 'Times-circle' ,
36
- label : 'Warning' ,
36
+ label : 'Warning status icon ' ,
37
37
} ;
38
38
39
39
case STATUS_CRITICAL :
40
40
return {
41
41
color : 'statusCritical' ,
42
42
name : 'Times-circle' ,
43
- label : 'Critical' ,
43
+ label : 'Critical status icon ' ,
44
44
} ;
45
45
default :
46
- return { color : 'textTertiary' , name : 'Info' , label : 'Info' } ;
46
+ return {
47
+ color : 'textTertiary' ,
48
+ name : 'Info' ,
49
+ label : 'Information status icon' ,
50
+ } ;
47
51
}
48
52
} ) ( ) ;
49
53
50
- return < Icon color = { icon . color } name = { icon . name } /> ;
54
+ return < Icon color = { icon . color } name = { icon . name } aria-label = { icon . label } /> ;
51
55
} ;
You can’t perform that action at this time.
0 commit comments