Skip to content

Commit

Permalink
Merge pull request #960 from EasyDynamics/brad/fix-button-width
Browse files Browse the repository at this point in the history
fix(loader): Adjust `OSCALLoaderForm` button styling
  • Loading branch information
brian-comply0 authored Nov 16, 2023
2 parents d75a5e8 + 5bf24e6 commit 305ba13
Showing 1 changed file with 33 additions and 33 deletions.
66 changes: 33 additions & 33 deletions packages/oscal-react-library/src/components/OSCALLoaderForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,40 +40,40 @@ export default function OSCALLoaderForm(props) {
<Grid container spacing={3}>
{!props.isRestMode && (
<>
<Grid item xs={6} md={9}>
<TextField
id="oscal-url"
label={`OSCAL ${props.oscalObjectType.name} URL`}
defaultValue={props.oscalUrl}
helperText="(JSON Format)"
variant="outlined"
fullWidth
inputRef={url}
/>
</Grid>
<Grid item xs={4} md={2}>
<Grid item xs={12} md={12}>
<Stack direction="row" spacing={1}>
<Button
variant="contained"
size="large"
color="primary"
endIcon={<ReplayIcon>send</ReplayIcon>}
disabled={!props.isResolutionComplete}
type="submit"
>
Reload
</Button>
<Button
variant="contained"
size="large"
color="secondary"
endIcon={<FileUploadIcon />}
component="label"
disabled={!props.isResolutionComplete}
>
Upload
<input type="file" hidden accept="application/json" onChange={onUpload} />
</Button>
<TextField
id="oscal-url"
label={`OSCAL ${props.oscalObjectType.name} URL`}
defaultValue={props.oscalUrl}
helperText="(JSON Format)"
variant="outlined"
fullWidth
inputRef={url}
/>
<Stack direction="row" spacing={1} sx={{ height: "3.5rem" }}>
<Button
variant="contained"
size="large"
color="primary"
endIcon={<ReplayIcon>send</ReplayIcon>}
disabled={!props.isResolutionComplete}
type="submit"
>
Reload
</Button>
<Button
variant="contained"
size="large"
color="secondary"
endIcon={<FileUploadIcon />}
component="label"
disabled={!props.isResolutionComplete}
>
Upload
<input type="file" hidden accept="application/json" onChange={onUpload} />
</Button>
</Stack>
</Stack>
</Grid>
</>
Expand Down

0 comments on commit 305ba13

Please sign in to comment.