Skip to content

Commit

Permalink
Merge pull request #1016 from aehrc/fix/various-fixes
Browse files Browse the repository at this point in the history
Fix renderer background to be #fafafa
  • Loading branch information
fongsean authored Sep 18, 2024
2 parents 947da12 + 1195ee0 commit 6309fbf
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 14 deletions.
2 changes: 1 addition & 1 deletion apps/smart-forms-app/src/theme/palette.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ const palette: PaletteOptions = {
},
background: {
paper: '#fff',
default: grey['50']
default: '#fafafa'
},
customBackground: {
neutral: '#F4F6F8'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,14 +175,16 @@ function FormTopLevelItem(props: FormTopLevelItemProps) {
const itemRepeatsAndIsNotCheckbox = isRepeatItemAndNotCheckbox(topLevelQItem);
if (itemRepeatsAndIsNotCheckbox) {
return (
<RepeatItem
key={topLevelQItem.linkId}
qItem={topLevelQItem}
qrItem={topLevelQRItem}
groupCardElevation={1}
parentIsReadOnly={readOnly}
onQrItemChange={onQrItemChange}
/>
<Box mt={1}>
<RepeatItem
key={topLevelQItem.linkId}
qItem={topLevelQItem}
qrItem={topLevelQRItem}
groupCardElevation={1}
parentIsReadOnly={readOnly}
onQrItemChange={onQrItemChange}
/>
</Box>
);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ function BuildFormButtonForStorybook(props: BuildFormButtonProps) {
<Box display="flex" mb={0.5} alignItems="center" columnGap={3}>
<Tooltip title="Build form with questionnaire response" placement="right">
<IconButton onClick={handleBuildForm} size="small" color="primary">
<Iconify icon="ph:hammer" sx={{ mb: 0.5 }} />
<Iconify icon="ph:hammer" />
</IconButton>
</Tooltip>
</Box>
Expand Down
4 changes: 0 additions & 4 deletions packages/smart-forms-renderer/src/theme/palette.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,6 @@ const palette: PaletteOptions = {
secondary: grey['600'],
disabled: grey['500']
},
background: {
paper: '#fff',
default: grey['50']
},
customBackground: {
neutral: '#F4F6F8'
},
Expand Down

0 comments on commit 6309fbf

Please sign in to comment.