@@ -6,7 +6,6 @@ import { default as AsyncCreatable } from 'react-select/async-creatable';
6
6
7
7
import { Icon } from '../Icon/Icon' ;
8
8
import { Spinner } from '../Spinner/Spinner' ;
9
- import { css , cx } from '@emotion/css' ;
10
9
import resetSelectStyles from './resetSelectStyles' ;
11
10
import { SelectMenu , SelectMenuOptions } from './SelectMenu' ;
12
11
import { IndicatorsContainer } from './IndicatorsContainer' ;
@@ -251,33 +250,6 @@ export function SelectBase<T>({
251
250
MenuList : SelectMenu ,
252
251
Group : SelectOptionGroup ,
253
252
ValueContainer,
254
- Placeholder ( props : any ) {
255
- return (
256
- < div
257
- { ...props . innerProps }
258
- className = { cx (
259
- css ( props . getStyles ( 'placeholder' , props ) ) ,
260
- css `
261
- display : inline-block;
262
- color : ${ theme . colors . text . disabled } ;
263
- grid-area : 1 / 1 / 2 / 3 ;
264
- box-sizing : border-box;
265
- line-height : 1 ;
266
- white-space : nowrap;
267
- ` ,
268
- // When width: auto, the placeholder must take up space in the Select otherwise the width collapses down
269
- width !== 'auto' &&
270
- css `
271
- position : absolute;
272
- top : 50% ;
273
- transform : translateY (-50% );
274
- `
275
- ) }
276
- >
277
- { props . children }
278
- </ div >
279
- ) ;
280
- } ,
281
253
IndicatorsContainer ( props : any ) {
282
254
const { selectProps } = props ;
283
255
const { value, showAllSelectedWhenOpen, maxVisibleValues, menuIsOpen } = selectProps ;
@@ -346,7 +318,7 @@ export function SelectBase<T>({
346
318
...components ,
347
319
} }
348
320
styles = { {
349
- ...resetSelectStyles ( ) ,
321
+ ...resetSelectStyles ( theme ) ,
350
322
menuPortal : ( base : any ) => ( {
351
323
...base ,
352
324
zIndex : theme . zIndex . portal ,
0 commit comments