Remove blue box around focused items (#10)
This commit is contained in:
parent
fd464be3a5
commit
b49cc9fbb6
@ -1,9 +1,18 @@
|
|||||||
import { ChakraProvider, extendTheme } from "@chakra-ui/react";
|
import { ChakraProvider, extendTheme } from "@chakra-ui/react";
|
||||||
|
import { Global, css } from "@emotion/react";
|
||||||
import theme from "/utils/theme";
|
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 }) {
|
function MyApp({ Component, pageProps }) {
|
||||||
return (
|
return (
|
||||||
<ChakraProvider theme={extendTheme(theme)}>
|
<ChakraProvider theme={extendTheme(theme)}>
|
||||||
|
<Global styles={GlobalStyles} />
|
||||||
<Component {...pageProps} />
|
<Component {...pageProps} />
|
||||||
</ChakraProvider>
|
</ChakraProvider>
|
||||||
);
|
);
|
||||||
|
@ -23,6 +23,7 @@ class Base(pydantic.BaseModel):
|
|||||||
"""Pydantic config."""
|
"""Pydantic config."""
|
||||||
|
|
||||||
arbitrary_types_allowed = True
|
arbitrary_types_allowed = True
|
||||||
|
use_enum_values = True
|
||||||
|
|
||||||
def json(self) -> str:
|
def json(self) -> str:
|
||||||
"""Convert the object to a json string.
|
"""Convert the object to a json string.
|
||||||
|
@ -13,6 +13,7 @@ DEFAULT_IMPORTS: ImportDict = {
|
|||||||
"react": {"useEffect", "useState"},
|
"react": {"useEffect", "useState"},
|
||||||
"next/router": {"useRouter"},
|
"next/router": {"useRouter"},
|
||||||
f"/{constants.STATE_PATH}": {"updateState", "E"},
|
f"/{constants.STATE_PATH}": {"updateState", "E"},
|
||||||
|
"": {"focus-visible/dist/focus-visible"},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user