@@ -17,6 +17,7 @@ import { AppContext } from '../context/App';
17
17
import { IconColor } from '../types' ;
18
18
import type { Notification } from '../typesGitHub' ;
19
19
import { openExternalLink } from '../utils/comms' ;
20
+ import Constants from '../utils/constants' ;
20
21
import {
21
22
formatForDisplay ,
22
23
formatNotificationUpdatedAt ,
@@ -86,7 +87,7 @@ export const NotificationRow: FC<IProps> = ({ notification, hostname }) => {
86
87
notification . subject . type ,
87
88
] ) ;
88
89
89
- const commentsLabel = `${ notification . subject . comments } ${
90
+ const commentsPillDescription = `${ notification . subject . comments } ${
90
91
notification . subject . comments > 1 ? 'comments' : 'comment'
91
92
} `;
92
93
@@ -156,22 +157,31 @@ export const NotificationRow: FC<IProps> = ({ notification, hostname }) => {
156
157
title = { icon . description }
157
158
className = "ml-1"
158
159
>
159
- < icon . type
160
- size = { 16 }
161
- className = { icon . color }
162
- aria-label = { icon . description }
163
- />
160
+ < button
161
+ type = "button"
162
+ className = { Constants . PILL_CLASS_NAME }
163
+ >
164
+ < icon . type
165
+ size = { 12 }
166
+ className = { `mr-1 ${ icon . color } ` }
167
+ aria-label = { icon . description }
168
+ />
169
+ { review . users . length }
170
+ </ button >
164
171
</ span >
165
172
) ;
166
173
} )
167
174
: null }
168
175
{ notification . subject ?. comments > 0 && (
169
- < span className = "ml-1" title = { commentsLabel } >
170
- < CommentIcon
171
- size = { 16 }
172
- className = { IconColor . GRAY }
173
- aria-label = { commentsLabel }
174
- />
176
+ < span className = "ml-1" title = { commentsPillDescription } >
177
+ < button type = "button" className = { Constants . PILL_CLASS_NAME } >
178
+ < CommentIcon
179
+ size = { 12 }
180
+ className = { `mr-1 ${ IconColor . GRAY } ` }
181
+ aria-label = { commentsPillDescription }
182
+ />
183
+ { notification . subject . comments }
184
+ </ button >
175
185
</ span >
176
186
) }
177
187
</ span >
0 commit comments