[material-ui][Chip] Deletable variant has cursor: pointer
style
#38999
Labels
component: chip
This is the name of the generic UI component, not the React module!
package: material-ui
Specific to @mui/material
Duplicates
Latest version
Steps to reproduce 🕹
Link to live example: https://mui.com/material-ui/react-chip/#deletable
Current behavior 😯
The deletable chip has
cursor: pointer
style.Expected behavior 🤔
The deletable chip shouldn't have
cursor: pointer
style, only delete icon.Context 🔦
Here we add
cursor: 'pointer',
only ifownerState.clickable
is true:material-ui/packages/mui-material/src/Chip/Chip.js
Line 202 in 7600bf2
I debugged it and saw that
ownerState.clickable
is false for deletable chip. I think that we havecursor: pointer
fromButtonBase
styles:material-ui/packages/mui-material/src/ButtonBase/ButtonBase.js
Line 49 in 7600bf2
Your environment 🌎
The text was updated successfully, but these errors were encountered: