diff --git a/packages/shared-ux/button_toolbar/src/buttons/toolbar_button/toolbar_button.tsx b/packages/shared-ux/button_toolbar/src/buttons/toolbar_button/toolbar_button.tsx index a120c3184ff20..9b0926cda2876 100644 --- a/packages/shared-ux/button_toolbar/src/buttons/toolbar_button/toolbar_button.tsx +++ b/packages/shared-ux/button_toolbar/src/buttons/toolbar_button/toolbar_button.tsx @@ -88,7 +88,7 @@ const computeToolbarButtonCommonCSSProps = ( : {}; const defaultStyles = { - ...toolButtonStyles.default, + ...(type === 'primary' ? {} : toolButtonStyles.default), ...groupPositionStyles, }; @@ -96,7 +96,7 @@ const computeToolbarButtonCommonCSSProps = ( ? defaultStyles : { ...defaultStyles, - ...(type === 'primary' ? {} : toolButtonStyles.emptyButton), + ...(type === 'empty' ? toolButtonStyles.emptyButton : {}), }; };