From 8ca4b4d1e5ebc95a5edb734a06ce77e825921b63 Mon Sep 17 00:00:00 2001 From: sai6855 <60743144+sai6855@users.noreply.github.com> Date: Sun, 17 Sep 2023 10:32:41 +0530 Subject: [PATCH] argos fix --- packages/mui-joy/src/Button/Button.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/mui-joy/src/Button/Button.tsx b/packages/mui-joy/src/Button/Button.tsx index d93c757c4db9f5..7261e2addfd698 100644 --- a/packages/mui-joy/src/Button/Button.tsx +++ b/packages/mui-joy/src/Button/Button.tsx @@ -157,8 +157,11 @@ export const getButtonStyles = ({ }, '&:active, &[aria-pressed="true"]': theme.variants[`${ownerState.variant!}Active`]?.[ownerState.color!], - ...(ownerState.disabled && - theme.variants[`${ownerState.variant!}Disabled`]?.[ownerState.color!]), + '&:disabled': + theme.variants[`${ownerState.variant!}Disabled`]?.[ownerState.color!], + // ...(ownerState.disabled && + // theme.variants[`${ownerState.variant!}Disabled`]?.[ownerState.color!]), + ...(ownerState.loadingPosition === 'center' && { // this has to come after the variant styles to take effect. [`&.${buttonClasses.loading}`]: {