Skip to content

Commit

Permalink
[system] Fix composeClasses v6 behavior change
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Aug 30, 2024
1 parent eea5079 commit 85f2239
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/mui-utils/src/composeClasses/composeClasses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ export default function composeClasses<ClassKey extends string>(
for (let i = 0; i < slot.length; i += 1) {
const value = slot[i];
if (value) {
buffer += getUtilityClass(value) + ' ';
buffer += (buffer === '' ? '' : ' ') + getUtilityClass(value);

if (classes && classes[value]) {
buffer += classes[value] + ' ';
buffer += ' ' + classes[value];
}
}
}
Expand Down

0 comments on commit 85f2239

Please sign in to comment.