Remove blue box around focused items (#10)

This commit is contained in:
Nikhil Rao 2022-11-21 12:17:08 -08:00 committed by GitHub
parent fd464be3a5
commit b49cc9fbb6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 0 deletions

View File

@ -1,9 +1,18 @@
import { ChakraProvider, extendTheme } from "@chakra-ui/react";
import { Global, css } from "@emotion/react";
import theme from "/utils/theme";
const GlobalStyles = css`
/* Hide the blue border around Chakra components. */
.js-focus-visible :focus:not([data-focus-visible-added]) {
outline: none;
box-shadow: none;
`;
function MyApp({ Component, pageProps }) {
return (
<ChakraProvider theme={extendTheme(theme)}>
<Global styles={GlobalStyles} />
<Component {...pageProps} />
</ChakraProvider>
);

View File

@ -23,6 +23,7 @@ class Base(pydantic.BaseModel):
"""Pydantic config."""
arbitrary_types_allowed = True
use_enum_values = True
def json(self) -> str:
"""Convert the object to a json string.

View File

@ -13,6 +13,7 @@ DEFAULT_IMPORTS: ImportDict = {
"react": {"useEffect", "useState"},
"next/router": {"useRouter"},
f"/{constants.STATE_PATH}": {"updateState", "E"},
"": {"focus-visible/dist/focus-visible"},
}