Removed mistakenly set menuitem role from anchors

This commit is contained in:
Rafael Wendel
2021-02-25 19:56:50 -03:00
parent 5a933cf740
commit b4dd9784bd
4 changed files with 9 additions and 27 deletions

View File

@@ -18,17 +18,14 @@ export default function QueryControlDropdown(props) {
<Menu>
{!props.query.isNew() && (!props.query.is_draft || !props.query.is_archived) && (
<Menu.Item>
<a target="_self" role="menuitem" onClick={() => props.openAddToDashboardForm(props.selectedTab)}>
<a target="_self" onClick={() => props.openAddToDashboardForm(props.selectedTab)}>
<PlusCircleFilledIcon /> Add to Dashboard
</a>
</Menu.Item>
)}
{!clientConfig.disablePublicUrls && !props.query.isNew() && (
<Menu.Item>
<a
role="menuitem"
onClick={() => props.showEmbedDialog(props.query, props.selectedTab)}
data-test="ShowEmbedDialogButton">
<a onClick={() => props.showEmbedDialog(props.query, props.selectedTab)} data-test="ShowEmbedDialogButton">
<ShareAltOutlinedIcon /> Embed Elsewhere
</a>
</Menu.Item>