diff --git a/web/components/src/Accordion/Header.tsx b/web/components/src/Accordion/Header.tsx index d02732a13..4e2e7d4bc 100644 --- a/web/components/src/Accordion/Header.tsx +++ b/web/components/src/Accordion/Header.tsx @@ -39,6 +39,19 @@ const StyledRAccordionButton = styled(RAccordionButton)` } ` +const StyledCAccordionButton = styled(CAccordionButton)` + display: flex; + align-items: center; + width: 100%; + background: transparent; + padding: var(--space-medium) 0; + border: none; + cursor: pointer; + &[data-focus-visible-added]:focus { + ${outlineTemplate(outline)} + } +` + const FilledIcon = styled(Icon)`` const OutlineIcon = styled(Icon)`` @@ -99,7 +112,11 @@ export const Header = Flags.IS_DEV return ( - + {isOpen ? ( @@ -114,7 +131,7 @@ export const Header = Flags.IS_DEV {children} - + ) }) diff --git a/web/pages/_app.tsx b/web/pages/_app.tsx index 487eada23..fc1f8c47e 100644 --- a/web/pages/_app.tsx +++ b/web/pages/_app.tsx @@ -1,7 +1,6 @@ import type { AppProps } from 'next/app' import type { NextPage } from 'next' import type { ReactNode } from 'react' -import { ChakraBaseProvider } from '@chakra-ui/react' import Head from 'next/head' import { useRouter } from 'next/router' import { GlobalStyle } from '../styles/globalStyles' @@ -118,24 +117,22 @@ function MyApp({ Component, pageProps }: CustomAppProps): JSX.Element { ` return ( - - - {Flags.IS_DEV && Skip to Content} - <> - - - - - - {IS_LIVE && } - {Flags.IS_DEV ? ( - {getLayout()} - ) : ( - <>{getLayout()} - )} - - - + + {Flags.IS_DEV && Skip to Content} + <> + + + + + + {IS_LIVE && } + {Flags.IS_DEV ? ( + {getLayout()} + ) : ( + <>{getLayout()} + )} + + ) }