Skip to content

Commit

Permalink
POC-536 - Add optional prop to Menu that restores MenuItem Safari com…
Browse files Browse the repository at this point in the history
…patibility (onMouseDown trigger instead of onClick) at the cost of overall accessibility.
  • Loading branch information
chloehunter committed Dec 19, 2023
1 parent 5b36553 commit f38fe3d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions components/MenuView.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,13 @@ export default class MenuView extends React.PureComponent {
"Optional ref override for the triggering element, for accessibility purposes (e.g. returning focus after modal close).",
optional: true,
},
{
name: "useSafariCompatibilityMode",
type: "boolean",
description:
"Optional prop for improved Safari compatibility at the cost of accessibility. Use in conjunction with frontend useragent detection.",
optional: true,
},
]}
className={cssClass.PROPS}
/>
Expand Down

0 comments on commit f38fe3d

Please sign in to comment.