Skip to content

Commit

Permalink
set a button role
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhardoj committed Jan 4, 2024
1 parent cbf35b6 commit a015559
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/BaseMiniContextMenuItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import ReportActionComposeFocusManager from '@libs/ReportActionComposeFocusManag
import variables from '@styles/variables';
import PressableWithoutFeedback from './Pressable/PressableWithoutFeedback';
import Tooltip from './Tooltip/PopoverAnchorTooltip';
import CONST from '@src/CONST';

type BaseMiniContextMenuItemProps = {
/**
Expand Down Expand Up @@ -66,6 +67,7 @@ function BaseMiniContextMenuItem({tooltipText, onPress, children, isDelayButtonS
event.preventDefault();
}}
accessibilityLabel={tooltipText}
role={CONST.ROLE.BUTTON}
style={({hovered, pressed}) => [
styles.reportActionContextMenuMiniButton,
StyleUtils.getButtonBackgroundColorStyle(getButtonState(hovered, pressed, isDelayButtonStateComplete)),
Expand Down

0 comments on commit a015559

Please sign in to comment.