Fixup ContextMenuTooltipButton.tsx
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>pull/21833/head
parent
a8f5731c07
commit
3b5a02d804
|
@ -21,14 +21,12 @@ import React from "react";
|
|||
import AccessibleTooltipButton from "../../components/views/elements/AccessibleTooltipButton";
|
||||
|
||||
interface IProps extends React.ComponentProps<typeof AccessibleTooltipButton> {
|
||||
label?: string;
|
||||
// whether or not the context menu is currently open
|
||||
isExpanded: boolean;
|
||||
}
|
||||
|
||||
// Semantic component for representing the AccessibleButton which launches a <ContextMenu />
|
||||
export const ContextMenuTooltipButton: React.FC<IProps> = ({
|
||||
label,
|
||||
isExpanded,
|
||||
children,
|
||||
onClick,
|
||||
|
@ -40,8 +38,6 @@ export const ContextMenuTooltipButton: React.FC<IProps> = ({
|
|||
{...props}
|
||||
onClick={onClick}
|
||||
onContextMenu={onContextMenu || onClick}
|
||||
title={label}
|
||||
aria-label={label}
|
||||
aria-haspopup={true}
|
||||
aria-expanded={isExpanded}
|
||||
>
|
||||
|
|
Loading…
Reference in New Issue