diff --git a/lib/components/src/Button/Button.tsx b/lib/components/src/Button/Button.tsx index 0fdb2f95e30..e792c202824 100644 --- a/lib/components/src/Button/Button.tsx +++ b/lib/components/src/Button/Button.tsx @@ -114,7 +114,7 @@ const ButtonWrapper = styled.button( } : {}; }, - ({ theme, tertiary, inForm }) => + ({ theme, tertiary, inForm, small }) => tertiary ? { background: @@ -125,6 +125,8 @@ const ButtonWrapper = styled.button( boxShadow: `${theme.input.border} 0 0 0 1px inset`, borderRadius: theme.input.borderRadius, + ...(inForm && small ? { padding: '10px 16px' } : {}), + '&:hover': { background: theme.base === 'light' diff --git a/lib/components/src/controls/Boolean.tsx b/lib/components/src/controls/Boolean.tsx index cd33d862194..cc896b22182 100644 --- a/lib/components/src/controls/Boolean.tsx +++ b/lib/components/src/controls/Boolean.tsx @@ -24,13 +24,11 @@ const Label = styled.label(({ theme }) => ({ border: 'none', background: 'transparent', cursor: 'pointer', + borderRadius: '3em', '&:focus': { outline: 'none', - - '& ~ span': { - boxShadow: `${theme.color.secondary} 0 0 0 1px inset !important`, - }, + boxShadow: `${theme.color.secondary} 0 0 0 1px inset !important`, }, }, @@ -82,7 +80,7 @@ const parse = (value: string | null) => value === 'true'; export type BooleanProps = ControlProps & BooleanConfig; export const BooleanControl: FC = ({ name, value, onChange }) => ( -