Skip to content

Commit

Permalink
Merge pull request #24 from Coaktion/fix/auto-complete-margin-adjust
Browse files Browse the repository at this point in the history
fix: adding margin to select all option
  • Loading branch information
MatheusDev20 authored Apr 11, 2024
2 parents 3129bda + 9ad3d81 commit 79700a8
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions src/auto-complete-multiple.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,18 @@ interface AktAutoCompleteMultipleProps {
allSelectOption: string;
}

interface OptionProps {
props: React.HTMLAttributes<HTMLLIElement>;
option: any;
selected: boolean;
}

const optionStyles = {
display: 'flex',
alignItems: 'center',
width: '100%',
gap: '8px'
gap: '8px',
marginLeft: '10px'
};

const AktAutoCompleteMultiple: React.FC<AktAutoCompleteMultipleProps> = ({
Expand All @@ -59,12 +66,6 @@ const AktAutoCompleteMultiple: React.FC<AktAutoCompleteMultipleProps> = ({

const icon = <CheckBoxOutlineBlankIcon fontSize="small" />;
const checkedIcon = <CheckBoxIcon fontSize="small" />;

type OptionProps = {
props: React.HTMLAttributes<HTMLLIElement>;
option: any;
selected: boolean;
};
const Option = ({ props, option, selected }: OptionProps) => {
return (
<li {...props}>
Expand Down

0 comments on commit 79700a8

Please sign in to comment.