From f38fe3d873905eb7723fa36bb194d0705f82c898 Mon Sep 17 00:00:00 2001 From: Chloe Hunter Date: Mon, 18 Dec 2023 12:34:40 -0800 Subject: [PATCH] POC-536 - Add optional prop to Menu that restores MenuItem Safari compatibility (onMouseDown trigger instead of onClick) at the cost of overall accessibility. --- components/MenuView.jsx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/components/MenuView.jsx b/components/MenuView.jsx index 42bb2476..4ebb5c11 100644 --- a/components/MenuView.jsx +++ b/components/MenuView.jsx @@ -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} />