-
-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ToggleButton] Implement ToggleButton #11
Comments
I don't quite understand the issue.
If you like it to behave like a Button, why don't you use the Button? Is the use-case that you would like to actually use a ToggleButton that looks like Button? What about the toggled state? |
@mnajdova Thanks, sorry I forgot to clarify something. I'm using ToggleButton for radio-button-like functionality, but I need the radios to look exactly like I couldn't get Mui's Does that make sense? |
Got it yes, sounds like something that will be possible with the |
Thanks for clearing that up and looking forward to that. Until then, manually restyling isn't too big of a deal. |
This makes me think about:
|
TIL that This is not mentioned in the APG at all, but it is in the aria specs An example usage of this is "Collapse/Expand All" buttons that can bulk-control a whole CC @colmtuite |
Looking at this issue discussing |
I'd like to style a
<ToggleButton>
to look and behave exactly like a<Button>
without explicitly overriding all of theToggleButton
's class styles.I've learned that I can inject
Button
styles this way:This halfway solves my problem. However, I'd like to avoid injecting the classes
MuiToggleButton-root MuiToggleButtonGroup-grouped MuiToggleButtonGroup-groupedHorizontal
because they're overriding the ones I've added above.Is this sort of thing possible? The reason I'm trying this is because I can't put a
<Button>
inside of a<ToggleButton>
without getting an error, so I figured I'd try to make it look and behave like a<Button>
.Thanks
The text was updated successfully, but these errors were encountered: