diff --git a/site/source/design-system/accordion/index.tsx b/site/source/design-system/accordion/index.tsx index 7e58dc00a..4a57696b8 100644 --- a/site/source/design-system/accordion/index.tsx +++ b/site/source/design-system/accordion/index.tsx @@ -7,6 +7,7 @@ import { animated, useSpring } from 'react-spring' import useMeasure from 'react-use-measure' import styled, { css } from 'styled-components' +import { FocusStyle } from '../global-style' import chevronImg from './chevron.svg' export const Accordion = (props: AriaAccordionProps) => { @@ -24,7 +25,6 @@ export const Accordion = (props: AriaAccordionProps) => { } const StyledAccordionGroup = styled.div` - overflow: hidden; max-width: 100%; ${({ theme }) => css` @@ -64,7 +64,7 @@ function AccordionItem(props: AccordionItemProps) { {/* @ts-ignore: https://github.com/pmndrs/react-spring/issues/1515 */} - + @@ -101,7 +101,7 @@ const StyledButton = styled.button` text-decoration: underline; } :focus { - outline: none; + ${FocusStyle} } ` @@ -118,7 +118,7 @@ const ChevronRightMedium = styled.img.attrs({ src: chevronImg })` `} ` -const StyledContent = styled(animated.div)` +const StyledContent = styled(animated.div)<{ $isOpen: boolean }>` overflow: hidden; > div { margin: ${({ theme }) => theme.spacings.lg}; diff --git a/site/source/design-system/field/Radio/Radio.tsx b/site/source/design-system/field/Radio/Radio.tsx index bcdf6dac2..5386c384b 100644 --- a/site/source/design-system/field/Radio/Radio.tsx +++ b/site/source/design-system/field/Radio/Radio.tsx @@ -21,7 +21,7 @@ export function Radio(props: RadioProps) { return ( {!hideRadio && } - + {children} @@ -40,7 +40,7 @@ export const RadioSkeleton = (props: RadioProps) => { const { inputProps } = useRadio(ariaProps, state, ref) return ( -