Fixup ContextMenuTooltipButton.tsx

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
pull/21833/head
Michael Telatynski 2020-07-17 18:15:08 +01:00
parent a8f5731c07
commit 3b5a02d804
1 changed files with 0 additions and 4 deletions

View File

@ -21,14 +21,12 @@ import React from "react";
import AccessibleTooltipButton from "../../components/views/elements/AccessibleTooltipButton"; import AccessibleTooltipButton from "../../components/views/elements/AccessibleTooltipButton";
interface IProps extends React.ComponentProps<typeof AccessibleTooltipButton> { interface IProps extends React.ComponentProps<typeof AccessibleTooltipButton> {
label?: string;
// whether or not the context menu is currently open // whether or not the context menu is currently open
isExpanded: boolean; isExpanded: boolean;
} }
// Semantic component for representing the AccessibleButton which launches a <ContextMenu /> // Semantic component for representing the AccessibleButton which launches a <ContextMenu />
export const ContextMenuTooltipButton: React.FC<IProps> = ({ export const ContextMenuTooltipButton: React.FC<IProps> = ({
label,
isExpanded, isExpanded,
children, children,
onClick, onClick,
@ -40,8 +38,6 @@ export const ContextMenuTooltipButton: React.FC<IProps> = ({
{...props} {...props}
onClick={onClick} onClick={onClick}
onContextMenu={onContextMenu || onClick} onContextMenu={onContextMenu || onClick}
title={label}
aria-label={label}
aria-haspopup={true} aria-haspopup={true}
aria-expanded={isExpanded} aria-expanded={isExpanded}
> >