Skip to content
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

Add Mixed Styles With RadioGroup Buttons #5728

Closed
mtbayley opened this issue Sep 10, 2024 · 4 comments · Fixed by #5759
Closed

Add Mixed Styles With RadioGroup Buttons #5728

mtbayley opened this issue Sep 10, 2024 · 4 comments · Fixed by #5759
Assignees
Labels
Status: Investigate Needs to investigate more to what can be done. Type: Feature ⚙ Request or idea for a new feature.
Milestone

Comments

@mtbayley
Copy link
Contributor

Currently, all colors are the same with the Color parameter on RadioGroup. I'm requesting an easy way to customize the colors per button. See bootstrap docs.

https://getbootstrap.com/docs/5.3/components/button-group/#mixed-styles

image

@mtbayley mtbayley added the Type: Feature ⚙ Request or idea for a new feature. label Sep 10, 2024
@stsrki
Copy link
Collaborator

stsrki commented Sep 11, 2024

The example you posted is for the button group. We already support setting each individual button color for button groups. See the docs https://blazorise.com/docs/components/button

For RadioGroup, it is a different story because they are a "hacked" version of buttons that are applied to the label TAG. While it would work initially, it would not be ideal. For example, border colors would be different for buttons.

We don't have plans to add this feature at the moment.

@mtbayley
Copy link
Contributor Author

mtbayley commented Sep 11, 2024

I don't understand what you mean by the border colors. I was able to modify the classes in the DOM to make the demo show what I want.
image

But I'll see what I can cobble together with the button group instead

@stsrki
Copy link
Collaborator

stsrki commented Sep 12, 2024

By border colors, I meant all of the styles. For hover, active, disabled states. They could leak into neighboring buttons and could look weird. But, I could be wrong. So, I need to try it and see how it goes.

@stsrki stsrki self-assigned this Sep 12, 2024
@stsrki stsrki added the Status: Investigate Needs to investigate more to what can be done. label Sep 12, 2024
@stsrki stsrki added this to the 1.7 milestone Sep 12, 2024
This was referenced Oct 1, 2024
@stsrki
Copy link
Collaborator

stsrki commented Oct 1, 2024

#5759

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Investigate Needs to investigate more to what can be done. Type: Feature ⚙ Request or idea for a new feature.
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants