diff --git a/awx/ui_next/src/components/CheckboxListItem/CheckboxListItem.jsx b/awx/ui_next/src/components/CheckboxListItem/CheckboxListItem.jsx index 6ac79cc811..3675b9037e 100644 --- a/awx/ui_next/src/components/CheckboxListItem/CheckboxListItem.jsx +++ b/awx/ui_next/src/components/CheckboxListItem/CheckboxListItem.jsx @@ -3,12 +3,12 @@ import PropTypes from 'prop-types'; import styled from 'styled-components'; import { DataListItem, - DataListItemRow, + DataListItemRow as PFDataListItemRow, DataListItemCells, DataListCheck, Radio, } from '@patternfly/react-core'; -import DataListCell from '../DataListCell'; +import _DataListCell from '../DataListCell'; const Label = styled.label` ${({ isDisabled }) => @@ -18,6 +18,18 @@ const Label = styled.label` `} `; +const DataListItemRow = styled(PFDataListItemRow)` + && { + align-items: center; + } +`; + +const DataListCell = styled(_DataListCell)` + && { + margin-left: 10px; + } +`; + const CheckboxListItem = ({ isDisabled = false, isRadio = false, @@ -29,7 +41,6 @@ const CheckboxListItem = ({ onSelect, }) => { const CheckboxRadio = isRadio ? Radio : DataListCheck; - return (