Skip to content

Commit

Permalink
Fix misalignment checkbox final build
Browse files Browse the repository at this point in the history
Fix misalignment checkbox final build on Organization Lookup.

See: ansible#9433
  • Loading branch information
nixocio committed Apr 27, 2021
1 parent 6267b26 commit 2b5fe0e
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions awx/ui_next/src/components/CheckboxListItem/CheckboxListItem.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 }) =>
Expand All @@ -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,
Expand All @@ -29,7 +41,6 @@ const CheckboxListItem = ({
onSelect,
}) => {
const CheckboxRadio = isRadio ? Radio : DataListCheck;

return (
<DataListItem
key={itemId}
Expand Down

0 comments on commit 2b5fe0e

Please sign in to comment.