Skip to content

Commit cccae49

Browse files
[Rating] Add TODO comment in Rating component to use readOnly state class (#36357)
1 parent b2359fa commit cccae49

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

packages/mui-material/src/Rating/Rating.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ const RatingRoot = styled('span', {
103103
...(ownerState.size === 'large' && {
104104
fontSize: theme.typography.pxToRem(30),
105105
}),
106+
// TODO v6: use the .Mui-readOnly global state class
106107
...(ownerState.readOnly && {
107108
pointerEvents: 'none',
108109
}),

packages/mui-material/src/styles/createTheme.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ function createTheme(options = {}, ...args) {
4949
muiTheme = args.reduce((acc, argument) => deepmerge(acc, argument), muiTheme);
5050

5151
if (process.env.NODE_ENV !== 'production') {
52+
// TODO v6: Refactor to use globalStateClassesMapping from @mui/utils once `readOnly` state class is used in Rating component.
5253
const stateClasses = [
5354
'active',
5455
'checked',

0 commit comments

Comments
 (0)