Skip to content
Snippets Groups Projects
Unverified Commit c099e1ff authored by Matiss Janis Aboltins's avatar Matiss Janis Aboltins Committed by GitHub
Browse files

:bug: (autocomplete) consistent input height between multi/single input (#787)

Making consistent height between multi/single input autocomplete.
parent 15e6843a
No related branches found
No related tags found
No related merge requests found
......@@ -62,13 +62,22 @@ const colourStyles = {
padding: '3px 20px',
fontSize: 13,
}),
valueContainer: styles => ({ ...styles, padding: 'none' }),
valueContainer: (styles, { isMulti, selectProps }) => ({
...styles,
padding: 'none',
overflow: 'visible',
marginTop: isMulti && selectProps.value?.length ? -4 : undefined,
marginBottom: isMulti && selectProps.value?.length ? -4 : undefined,
}),
clearIndicator: styles => ({
...styles,
padding: 'none',
'> svg': { height: 15, width: 15 },
}),
multiValue: styles => ({ ...styles, backgroundColor: colors.b9 }),
multiValue: styles => ({
...styles,
backgroundColor: colors.b9,
}),
};
export default colourStyles;
---
category: Bugfix
authors: [MatissJanis]
---
New autocomplete: making consistent height between multi/single value inputs
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment