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 21, 2023
1 parent 9f623cb commit 815230f
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 13 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;
}
2 changes: 1 addition & 1 deletion test/reference
Submodule reference updated 54 files
+ TestMachinesCreate-testCreateBasicValidation-auto-dark-pixels.png
+ TestMachinesCreate-testCreateBasicValidation-auto-medium-pixels.png
+ TestMachinesCreate-testCreateBasicValidation-auto-mobile-pixels.png
+ TestMachinesCreate-testCreateBasicValidation-auto-pixels.png
+ TestMachinesCreate-testCreateBasicValidation-filter-dark-pixels.png
+ TestMachinesCreate-testCreateBasicValidation-filter-medium-pixels.png
+ TestMachinesCreate-testCreateBasicValidation-filter-mobile-pixels.png
+ TestMachinesCreate-testCreateBasicValidation-filter-pixels.png
+ TestMachinesCreate-testCreateBasicValidation-iso-dark-pixels.png
+ TestMachinesCreate-testCreateBasicValidation-iso-medium-pixels.png
+ TestMachinesCreate-testCreateBasicValidation-iso-mobile-pixels.png
+ TestMachinesCreate-testCreateBasicValidation-iso-pixels.png
+ TestMachinesCreate-testCreateBasicValidation-url-dark-pixels.png
+ TestMachinesCreate-testCreateBasicValidation-url-medium-pixels.png
+ TestMachinesCreate-testCreateBasicValidation-url-mobile-pixels.png
+ TestMachinesCreate-testCreateBasicValidation-url-pixels.png
+ TestMachinesDisks-testAddDiskAdditionalOptions-vm-add-disk-modal-additional-options-dark-pixels.png
+ TestMachinesDisks-testAddDiskAdditionalOptions-vm-add-disk-modal-additional-options-medium-pixels.png
+ TestMachinesDisks-testAddDiskAdditionalOptions-vm-add-disk-modal-additional-options-mobile-pixels.png
+ TestMachinesDisks-testAddDiskAdditionalOptions-vm-add-disk-modal-additional-options-pixels.png
+ TestMachinesDisks-testAddDiskCustomPath-vm-add-disk-modal-custom-path-dark-pixels.png
+ TestMachinesDisks-testAddDiskCustomPath-vm-add-disk-modal-custom-path-medium-pixels.png
+ TestMachinesDisks-testAddDiskCustomPath-vm-add-disk-modal-custom-path-mobile-pixels.png
+ TestMachinesDisks-testAddDiskCustomPath-vm-add-disk-modal-custom-path-pixels.png
+ TestMachinesDisks-testAddDiskNFS-vm-add-disk-modal-nfs-dark-pixels.png
+ TestMachinesDisks-testAddDiskNFS-vm-add-disk-modal-nfs-medium-pixels.png
+ TestMachinesDisks-testAddDiskNFS-vm-add-disk-modal-nfs-mobile-pixels.png
+ TestMachinesDisks-testAddDiskNFS-vm-add-disk-modal-nfs-pixels.png
+ TestMachinesDisks-testAddDiskPool-vm-add-disk-modal-disk-pool-dark-pixels.png
+ TestMachinesDisks-testAddDiskPool-vm-add-disk-modal-disk-pool-medium-pixels.png
+ TestMachinesDisks-testAddDiskPool-vm-add-disk-modal-disk-pool-mobile-pixels.png
+ TestMachinesDisks-testAddDiskPool-vm-add-disk-modal-disk-pool-pixels.png
+ TestMachinesHostDevs-testHostDevAddSingleDevice-vm-hostdevs-add-dialog-dark-pixels.png
+ TestMachinesHostDevs-testHostDevAddSingleDevice-vm-hostdevs-add-dialog-medium-pixels.png
+ TestMachinesHostDevs-testHostDevAddSingleDevice-vm-hostdevs-add-dialog-mobile-pixels.png
+ TestMachinesHostDevs-testHostDevAddSingleDevice-vm-hostdevs-add-dialog-pixels.png
+ TestMachinesNICs-testNICAdd-vm-add-nic-modal-dark-pixels.png
+ TestMachinesNICs-testNICAdd-vm-add-nic-modal-medium-pixels.png
+ TestMachinesNICs-testNICAdd-vm-add-nic-modal-mobile-pixels.png
+ TestMachinesNICs-testNICAdd-vm-add-nic-modal-pixels.png
+ TestMachinesSettings-testVsock-vsock-dark-pixels.png
+ TestMachinesSettings-testVsock-vsock-medium-pixels.png
+ TestMachinesSettings-testVsock-vsock-mobile-pixels.png
+ TestMachinesSettings-testVsock-vsock-pixels.png
+ TestMachinesSettings-testVsock-vsock-rtl-pixels.png
+ TestMachinesSettings-testWatchdog-watchdog-dark-pixels.png
+ TestMachinesSettings-testWatchdog-watchdog-medium-pixels.png
+ TestMachinesSettings-testWatchdog-watchdog-mobile-pixels.png
+ TestMachinesSettings-testWatchdog-watchdog-pixels.png
+ TestMachinesStoragePools-testStoragePoolsDeletion-storage-pool-delete-modal-error-dark-pixels.png
+ TestMachinesStoragePools-testStoragePoolsDeletion-storage-pool-delete-modal-error-medium-pixels.png
+ TestMachinesStoragePools-testStoragePoolsDeletion-storage-pool-delete-modal-error-mobile-pixels.png
+ TestMachinesStoragePools-testStoragePoolsDeletion-storage-pool-delete-modal-error-pixels.png
+ TestMachinesStoragePools-testStoragePoolsDeletion-storage-pool-delete-modal-error-rtl-pixels.png

0 comments on commit 815230f

Please sign in to comment.