Skip to content

Commit

Permalink
Merge branch 'loading-button-emotion' of github.com:siriwatknp/materi…
Browse files Browse the repository at this point in the history
…al-ui into loading-button-emotion
  • Loading branch information
siriwatknp committed May 20, 2021
2 parents 2e7e261 + 4f33a80 commit e3e30d7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/material-ui-lab/src/LoadingButton/LoadingButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,11 @@ const useUtilityClasses = (styleProps) => {
root: ['root', loading && 'loading'],
startIcon: [loading && `startIconLoading${capitalize(loadingPosition)}`],
endIcon: [loading && `endIconLoading${capitalize(loadingPosition)}`],
label: [`label${loading ? 'Loading' : ''}${capitalize(loadingPosition)}`],
loadingIndicator: ['loadingIndicator', `loadingIndicator${capitalize(loadingPosition)}`],
label: [loading && `labelLoading${capitalize(loadingPosition)}`],
loadingIndicator: [
'loadingIndicator',
loading && `loadingIndicator${capitalize(loadingPosition)}`,
],
};

return composeClasses(slots, getLoadingButtonUtilityClass, classes);
Expand Down

0 comments on commit e3e30d7

Please sign in to comment.