From 6ab816f79e5903aa3e2d81775a7c2d231ab11fdf Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Tue, 24 Sep 2019 12:29:20 -0600 Subject: [PATCH] Hide browser a11y outline on context menus Fixes https://github.com/vector-im/riot-web/issues/10926 Regressed by https://github.com/matrix-org/matrix-react-sdk/pull/3454/files Class introduced in https://github.com/matrix-org/matrix-react-sdk/pull/2994 --- src/components/structures/ContextualMenu.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/structures/ContextualMenu.js b/src/components/structures/ContextualMenu.js index 27a202785b..0f4d0b38d4 100644 --- a/src/components/structures/ContextualMenu.js +++ b/src/components/structures/ContextualMenu.js @@ -167,6 +167,7 @@ export default class ContextualMenu extends React.Component { const menuClasses = classNames({ 'mx_ContextualMenu': true, + 'mx_HiddenFocusable': true, // hide browser outline 'mx_ContextualMenu_left': !hasChevron && position.left, 'mx_ContextualMenu_right': !hasChevron && position.right, 'mx_ContextualMenu_top': !hasChevron && position.top,