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/2994pull/21833/head
parent
17e42eacd4
commit
6ab816f79e
|
@ -167,6 +167,7 @@ export default class ContextualMenu extends React.Component {
|
||||||
|
|
||||||
const menuClasses = classNames({
|
const menuClasses = classNames({
|
||||||
'mx_ContextualMenu': true,
|
'mx_ContextualMenu': true,
|
||||||
|
'mx_HiddenFocusable': true, // hide browser outline
|
||||||
'mx_ContextualMenu_left': !hasChevron && position.left,
|
'mx_ContextualMenu_left': !hasChevron && position.left,
|
||||||
'mx_ContextualMenu_right': !hasChevron && position.right,
|
'mx_ContextualMenu_right': !hasChevron && position.right,
|
||||||
'mx_ContextualMenu_top': !hasChevron && position.top,
|
'mx_ContextualMenu_top': !hasChevron && position.top,
|
||||||
|
|
Loading…
Reference in New Issue