I am trying to make the size of the react-select's Select component smaller. Everything works pretty well with one exception.
The element whose padding I wish to remove has this class: css-tlfecz-indicatorContainer and is a subcomponent of the react-select Select component, more precisely, the subcomponent responsible of rendering the × sign for clearing the selection.
I have tried putting this in the styles prop of the Select:
indicatorsContainer: (provided, state) => {
return {
...provided,
padding: '0px',
paddingLeft: '0px',
paddingTop: '0px',
paddingRight: '0px',
paddingDown: '0px',
};
},
But it does not work. I expected that there was an indicatorContainer styleable component, so that I do not have to override components with my own components, but I think this is the only way.
A screenshot of how the Select looks like if I change the styles manually from the DevTools' Elements tab:
There are no error messages.
Thank you.
