Skip to content

Commit

Permalink
fix checkbox label in delete storage modal
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasmatus committed Aug 17, 2023
1 parent 9f623cb commit 3498680
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/components/common/machinesConnectionSelector.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export const MachinesConnectionSelector = ({ onValueChanged, loggedUser, connect

return (
<FormGroup label={_("Connection")}
isInline hasNoPaddingTop
isInline
id={id}
className="machines-connection-selector"
labelIcon={
Expand Down
9 changes: 4 additions & 5 deletions src/components/storagePools/storagePoolDelete.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -172,15 +172,14 @@ class StoragePoolDelete extends React.Component {
? (volumes.length > 0
? <Checkbox id='storage-pool-delete-volumes'
isChecked={this.state.deleteVolumes}
label={<>
{ _("Also delete all volumes inside this pool:")}
label={_("Also delete all volumes inside this pool:")}
body={
<List className="pool-volumes-delete-list">
{volumes
.sort((a, b) => a.name.localeCompare(b.name))
{volumes.sort((a, b) => a.name.localeCompare(b.name))
.map(vol => <ListItem key={storagePool.name + vol.name}>{vol.name}</ListItem>)
}
</List>
</>}
}
onChange={(_event, checked) => this.onValueChanged('deleteVolumes', checked)} />
: _("No volumes exist in this storage pool."))
: _("Deleting an inactive storage pool will only undefine the pool. Its content will not be deleted.")
Expand Down
9 changes: 3 additions & 6 deletions src/machines.scss
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,7 @@
}
}

// radio buttons rendered vertically in pf-m-horizontal https://github.com/patternfly/patternfly/issues/5787
.pf-v5-c-form__group-control.pf-m-inline {
.pf-v5-c-radio {
width: auto;
display: grid;
}
// remove oversized gap between checkbox label and checkbox body
#storage-pool-delete-modal span.pf-v5-c-check__body {
margin-top: 0;
}

0 comments on commit 3498680

Please sign in to comment.