Skip to content

Commit

Permalink
Restyle checkboxes
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaw3d committed May 3, 2024
1 parent d80cff8 commit d9b3d21
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/components/Persist/ChoosePasswordFields.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { selectIsPersistenceUnsupported } from 'app/state/persist/selectors'
import { selectUnlockedStatus } from 'app/state/selectUnlockedStatus'
import { Box } from 'grommet/es6/components/Box'
import { Text } from 'grommet/es6/components/Text'
import { CheckBox } from 'grommet/es6/components/CheckBox'
import { FormField } from 'grommet/es6/components/FormField'
import { Paragraph } from 'grommet/es6/components/Paragraph'
Expand Down Expand Up @@ -31,7 +32,7 @@ export function ChoosePasswordFields() {
<Box as="fieldset" margin={{ top: 'medium' }} pad="medium">
<FormField contentProps={{ border: false, pad: 'none' }} margin={{ top: 'xsmall' }}>
<CheckBox
label={t('persist.createProfile.startPersistingToggle', 'Create a profile')}
label={<Text>{t('persist.createProfile.startPersistingToggle', 'Create a profile')}</Text>}
toggle
onChange={event => setStartPersisting(event.target.checked)}
{...(isChoiceDisabled
Expand Down
8 changes: 8 additions & 0 deletions src/styles/theme/ThemeProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,14 @@ const grommetCustomTheme: ThemeType = {
light: 'grayMedium',
},
},
border: {
color: 'text',
},
gap: '1.5ex',
extend: css`
font-size: 14px;
line-height: 1.2;
`,
},
layer: {
/**
Expand Down

0 comments on commit d9b3d21

Please sign in to comment.