use FocusStyleManager

this is better than the css hack
This commit is contained in:
David Lechner
2022-03-17 11:08:31 -05:00
parent c3c9a8fd7c
commit 22f0db27da
2 changed files with 3 additions and 6 deletions
-6
View File
@@ -49,12 +49,6 @@ a.#{$ns}-button {
text-align: left;
}
// https://github.com/palantir/blueprint/issues/
.#{$ns}-control input:focus:not(:focus-visible) ~ .#{$ns}-control-indicator,
.#{$ns}-button:focus:not(:focus-visible) {
outline: none;
}
.#{$ns}-button-text > img {
display: block;
}
+3
View File
@@ -1,6 +1,7 @@
// SPDX-License-Identifier: MIT
// Copyright (c) 2020-2022 The Pybricks Authors
import { FocusStyleManager } from '@blueprintjs/core';
import { I18nContext } from '@shopify/react-i18n';
import React from 'react';
import ReactDOM from 'react-dom';
@@ -46,6 +47,8 @@ if (appVersion.match(/beta/)) {
sagaMiddleware.run(rootSaga);
FocusStyleManager.onlyShowFocusOnTabs();
ReactDOM.render(
<React.StrictMode>
<Provider store={store}>