@@ -29,8 +29,6 @@ export interface DropdownToggleProps extends React.HTMLProps<HTMLButtonElement>,
2929 isText ?: boolean ;
3030 /** Whether or not the <div> has a disabled state */
3131 isDisabled ?: boolean ;
32- /** @deprecated Use `toggleVariant` instead. Whether or not the dropdown toggle button should have primary button styling */
33- isPrimary ?: boolean ;
3432 /** Alternate styles for the dropdown toggle button */
3533 toggleVariant ?: 'primary' | 'secondary' | 'default' ;
3634 /** An image to display within the dropdown toggle, appearing before any component children */
@@ -65,7 +63,6 @@ export const DropdownToggle: React.FunctionComponent<DropdownToggleProps> = ({
6563 isDisabled = false ,
6664 isPlain = false ,
6765 isText = false ,
68- isPrimary = false ,
6966 toggleVariant = 'default' ,
7067 // eslint-disable-next-line @typescript-eslint/no-unused-vars
7168 isActive = false ,
@@ -97,7 +94,6 @@ export const DropdownToggle: React.FunctionComponent<DropdownToggleProps> = ({
9794 isDisabled = { isDisabled }
9895 isPlain = { isPlain }
9996 isText = { isText }
100- isPrimary = { isPrimary }
10197 toggleVariant = { toggleVariant }
10298 onToggle = { onToggle }
10399 aria-haspopup = { ariaHasPopup }
@@ -123,7 +119,7 @@ export const DropdownToggle: React.FunctionComponent<DropdownToggleProps> = ({
123119 styles . dropdownToggle ,
124120 styles . modifiers . splitButton ,
125121 splitButtonVariant === 'action' && styles . modifiers . action ,
126- ( toggleVariant === 'primary' || isPrimary ) && splitButtonVariant === 'action' && styles . modifiers . primary ,
122+ toggleVariant === 'primary' && splitButtonVariant === 'action' && styles . modifiers . primary ,
127123 toggleVariant === 'secondary' && splitButtonVariant === 'action' && styles . modifiers . secondary ,
128124 isDisabled && styles . modifiers . disabled
129125 ) }
0 commit comments