Skip to content

Commit

Permalink
fix: make button gray in loading state
Browse files Browse the repository at this point in the history
  • Loading branch information
chybisov committed Jun 9, 2023
1 parent 84a9bae commit d64220e
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions packages/widget/src/config/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,13 +215,16 @@ export const createTheme = (mode: PaletteMode, theme: ThemeConfig = {}) => {
pointerEvents: 'auto',
},
[`&.${loadingButtonClasses.loading}.Mui-disabled`]: {
backgroundColor: primaryMainColor,
color: contrastButtonColor,
cursor: 'auto',
pointerEvents: 'auto',
color:
mode === 'light'
? alpha(common.black, 0.56)
: alpha(common.white, 0.56),
},
[`.${loadingButtonClasses.loadingIndicator}`]: {
color: contrastButtonColor,
color:
mode === 'light'
? alpha(common.black, 0.56)
: alpha(common.white, 0.56),
},
[`&.${loadingButtonClasses.root}.${loadingButtonClasses.loading}`]:
{
Expand Down

0 comments on commit d64220e

Please sign in to comment.