@@ -28,6 +28,7 @@ import {
2828} from './dropdown-fit-handler' ;
2929import { applyDropdownPositionRelativeToViewport , LogicalDOMRect } from './dropdown-position' ;
3030import { DropdownAlignment , DropdownProps , DropdownWidthConstraint } from './interfaces' ;
31+ import { getDropdownStyles } from './style' ;
3132
3233export interface InternalDropdownProps
3334 extends Omit < DropdownProps , 'minWidth' | 'maxWidth' > ,
@@ -110,6 +111,7 @@ interface TransitionContentProps {
110111 ariaLabel ?: string ;
111112 ariaLabelledby ?: string ;
112113 ariaDescribedby ?: string ;
114+ dropdownStyle ?: React . CSSProperties ;
113115}
114116
115117const TransitionContent = ( {
@@ -138,6 +140,7 @@ const TransitionContent = ({
138140 ariaLabel,
139141 ariaLabelledby,
140142 ariaDescribedby,
143+ dropdownStyle,
141144} : TransitionContentProps ) => {
142145 const contentRef = useMergeRefs ( dropdownRef , transitionRef ) ;
143146 const dropdownStyles : Record < string , string > = { } ;
@@ -178,6 +181,7 @@ const TransitionContent = ({
178181 ! header && ! content && styles [ 'is-empty' ] ,
179182 isRefresh && styles . refresh
180183 ) }
184+ style = { dropdownStyle }
181185 >
182186 < div ref = { verticalContainerRef } className = { styles [ 'dropdown-content' ] } >
183187 < DropdownContextProvider position = { position } >
@@ -221,6 +225,7 @@ const InternalDropdown = ({
221225 ariaLabel,
222226 ariaLabelledby,
223227 ariaDescribedby,
228+ style,
224229 __internalRootRef,
225230 ...restProps
226231} : InternalDropdownProps ) => {
@@ -580,6 +585,7 @@ const InternalDropdown = ({
580585 ariaLabel = { ariaLabel }
581586 ariaLabelledby = { ariaLabelledby }
582587 ariaDescribedby = { ariaDescribedby }
588+ dropdownStyle = { getDropdownStyles ( style ) }
583589 />
584590
585591 < TabTrap
0 commit comments