File tree Expand file tree Collapse file tree
src/components/Dialog/components Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -135,6 +135,7 @@ export const UserContextMenuButton = ({
135135 children,
136136 className,
137137 imageUrl,
138+ role = 'menuitem' ,
138139 userName,
139140 ...props
140141} : UserContextMenuButtonProps ) => (
@@ -144,6 +145,7 @@ export const UserContextMenuButton = ({
144145 'str-chat__context-menu__button str-chat__user-context-menu__button' ,
145146 className ,
146147 ) }
148+ role = { role }
147149 type = 'button'
148150 >
149151 < Avatar imageUrl = { imageUrl } size = 'sm' userName = { userName } />
@@ -162,6 +164,7 @@ export const EmojiContextMenuButton = ({
162164 className,
163165 emoji,
164166 label,
167+ role = 'menuitem' ,
165168 ...props
166169} : EmojiContextMenuButtonProps ) => (
167170 < button
@@ -170,6 +173,7 @@ export const EmojiContextMenuButton = ({
170173 'str-chat__context-menu__button str-chat__emoji-context-menu__button' ,
171174 className ,
172175 ) }
176+ role = { role }
173177 type = 'button'
174178 >
175179 < span className = 'str-chat__context-menu__button__emoji str-chat__emoji-item--entity' >
You can’t perform that action at this time.
0 commit comments