Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## dev #7309 +/- ##
==========================================
- Coverage 90.69% 86.22% -4.48%
==========================================
Files 426 431 +5
Lines 15095 15358 +263
Branches 0 3352 +3352
==========================================
- Hits 13691 13242 -449
- Misses 1404 1427 +23
- Partials 0 689 +689
☔ View full report in Codecov by Sentry. |
|
I haven't looked at the code yet but I think the buttons should not vary in size depending on being clicked or unclicked. I think the chip doesn't do it either. I guess you'll have to reserve the space for the check mark and make the text non-wrapping. @JonBunator @Mr-Technician Would love a second opinion on the visuals and behavior. |
This one is absolutely one of the issues. Material says all items should have same width and width should not change when item selected and tickmark appeared. I also tried to add hardcoded pixels for reserving space, but this time it breaks the mobile visual. |
|
Maybe you look how |
|
The visual are good to me, the behavior looks ok as well. |
Ofc, i also ask you about the @henon probably chip doesn't help us, because chips doesn't have to have equal width. (And we can wrap multiline chips, but for segmented buttons material says don't wrap them) With current design, using |
What about setting the CSS to not wrap the text and ellipsis if too long? Then instead of changing the width / height the text would be cut off. I can't imagine that anyone would want the height to change. |
If there is no "preserve space for tickmark but also ensure it doesn't overflow on mobile" solution, probably ellipsis is the best option. |
|
@mckaragoz also when I type in doc "toggle" and select it from the menu, it redirects me to |
|
adding @Mr-Technician to the review #7309 (comment) |
|
I also wonder if we should add |
@mckaragoz Is this fixed? Can you replace the videos with updated versions please? |
|
Why not base this on MudButtonGroup? The functionality is great, but this introduces new visuals that do not comply with the Material documentation. @mckaragoz |
|
What is the current state? |
Henon wants a minor change, probably will ready with next release. |
Actually i don't like MudButtonGroup for core library. It not look a specific component, more like a template with group of buttons. |
|
@henon, i rewrote the component a bit, used CSS grid this time. This is the result: 20231022_205835.mp4I think its ready to merge. |
@fondraco This is a good question. The MudButtonGroup uses whereas this group uses Also this component is generic whereas the
@fondraco How would you suggest to improve the visuals? |
|
Thanks for all the effort @mckaragoz ! |
|
This PR was merged too soon and since reverted. It has been continued in PR #7948 where we streamlined the API and improved the documentation. |
https://mudblazor.com/components/togglegroup Great new feature from the MudBlazor team that can replace all my RadioButton code. - MudBlazor/MudBlazor#7309 - MudBlazor/MudBlazor#7948 Open issues: - MudBlazor/MudBlazor#8223 - MudBlazor/MudBlazor#8224
https://mudblazor.com/components/togglegroup Great new feature from the MudBlazor team that can replace all my RadioButton code. - MudBlazor/MudBlazor#7309 - MudBlazor/MudBlazor#7948 Open issues: - MudBlazor/MudBlazor#8223 - MudBlazor/MudBlazor#8224
* New Component MudToggleGroup --------- Co-authored-by: Artyom M <[email protected]>
This reverts commit 35ecbbf.




Description
A general usage for all toggle situations. Support generic types. Uses MudToggleGroup as main component and MudToggleItem for items. Primarily designed to use with texts or icons but also supports renderfragments for complex situations. Supports multiple values. Written from scratch that doesn't have any BL0007 warnings.
Basic functions: Tickmark, icons, vertical, rounded, dense etc.
20230806_204325.mp4
Selection modes
20230806_204358.mp4
Color and styles
20230806_204440.mp4
How Has This Been Tested?
Types of changes
Checklist:
dev).