From 4616cd66f313f5ef195e82732e995ff43f6dff9b Mon Sep 17 00:00:00 2001 From: Themba Dube Date: Mon, 16 Mar 2020 09:21:21 -0400 Subject: [PATCH] [Autocomplete] Make categories more obvious --- .../material-ui-lab/src/Autocomplete/Autocomplete.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/material-ui-lab/src/Autocomplete/Autocomplete.js b/packages/material-ui-lab/src/Autocomplete/Autocomplete.js index 91147098e0e052..0c318185028fe8 100644 --- a/packages/material-ui-lab/src/Autocomplete/Autocomplete.js +++ b/packages/material-ui-lab/src/Autocomplete/Autocomplete.js @@ -162,17 +162,14 @@ export const styles = theme => ({ ...theme.typography.body1, overflow: 'hidden', margin: '4px 0', - '& > ul': { - maxHeight: '40vh', - overflow: 'auto', - }, }, /* Styles applied to the `listbox` component. */ listbox: { listStyle: 'none', margin: 0, padding: '8px 0px', - position: 'relative', + maxHeight: '40vh', + overflow: 'auto', }, /* Styles applied to the loading wrapper. */ loading: { @@ -223,6 +220,9 @@ export const styles = theme => ({ /* Styles applied to the group's ul elements. */ groupUl: { padding: 0, + '& $option': { + paddingLeft: 24, + }, }, });