0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-30 01:46:24 +01:00

Add menu role

This commit is contained in:
jacobtoppm 2021-04-16 17:03:37 +01:00 committed by Matt Westcott
parent 5a945c9e61
commit b6b43bcba2

View File

@ -69,7 +69,7 @@ export const CommentHeader: FunctionComponent<CommentHeaderProps> = ({
<Icon name="ellipsis-v" />
</summary>
<div className="comment-header__more-actions">
<div className="comment-header__more-actions" role="menu">
{onEdit && <button type="button" role="menuitem" onClick={onClickEdit}>{strings.EDIT}</button>}
{onDelete && <button type="button" role="menuitem" onClick={onClickDelete}>{strings.DELETE}</button>}
</div>