Tooltip on ToggleButton in ToggleButtonGroup #36270
Labels
accessibility
a11y
component: toggle button
This is the name of the generic UI component, not the React module!
component: tooltip
This is the name of the generic UI component, not the React module!
customization: css
Design CSS customizability
enhancement
This is not a bug, nor a new feature
package: base-ui
Specific to @mui/base
package: material-ui
Specific to @mui/material
Duplicates
Latest version
Steps to reproduce 馃暪
Link to live example: https://codesandbox.io/s/upbeat-sinoussi-bgbdsj?file=/src/App.js
Steps:
In the last button I added the span, as the documentation said, but the button has a different style
Current behavior 馃槸
I have a ToggleButtonGroup with a list of ToggleButton, I wanted to add Tooltips on the buttons, I followed the documentation and everything was fine. But I have some conditional buttons that can be disabled for some reason. When the buttons are disabled I get the following error:
I added the span tags but there is another problem: the styles have changed and the buttons cannot be clicked.
I followed other issues related to this problem but no workaround worked for me.
Do you have any suggestions?
Expected behavior 馃
It should be possible to add a tooltip to ToggleButton and disable it if the button is disabled without errors and without adding extra tags
Context 馃敠
Since ToggleButtons are IconButton (at least that's how we intend to use it) it would be helpful to a user to see what that button will do and the best way for that is Tooltip
Your environment 馃寧
The text was updated successfully, but these errors were encountered: