@@ -17,7 +17,7 @@ import { FormElement, FormElementProps } from './FormElement';
17
17
import { Icon } from './Icon' ;
18
18
import { AutoAlign } from './AutoAlign' ;
19
19
import { DropdownMenuProps } from './DropdownMenu' ;
20
- import { registerStyle , isElInChildren } from './util' ;
20
+ import { isElInChildren } from './util' ;
21
21
import { ComponentSettingsContext } from './ComponentSettings' ;
22
22
import { useControlledValue , useEventCallback , useMergeRefs } from './hooks' ;
23
23
import { createFC } from './common' ;
@@ -150,20 +150,6 @@ const PicklistContext = createContext<{
150
150
optionIdPrefix : '' ,
151
151
} ) ;
152
152
153
- /**
154
- *
155
- */
156
- function useInitComponentStyle ( ) {
157
- useEffect ( ( ) => {
158
- registerStyle ( 'picklist' , [
159
- [
160
- '.react-slds-picklist-dropdown' ,
161
- '{ left: 0; transform: translateX(0); }' ,
162
- ] ,
163
- ] ) ;
164
- } , [ ] ) ;
165
- }
166
-
167
153
/**
168
154
*
169
155
*/
@@ -241,8 +227,6 @@ export const Picklist: (<MultiSelect extends boolean | undefined>(
241
227
...rprops
242
228
} = props ;
243
229
244
- useInitComponentStyle ( ) ;
245
-
246
230
const fallbackId = useId ( ) ;
247
231
const id = id_ ?? fallbackId ;
248
232
const listboxId = `${ id } -listbox` ;
@@ -547,7 +531,6 @@ export const Picklist: (<MultiSelect extends boolean | undefined>(
547
531
}
548
532
) ;
549
533
const dropdownClassNames = classnames (
550
- 'react-slds-picklist-dropdown' ,
551
534
'slds-dropdown' ,
552
535
'slds-dropdown_length-5' ,
553
536
menuSize ? `slds-dropdown_${ menuSize } ` : 'slds-dropdown_fluid'
0 commit comments