-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
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
[joy-ui][ButtonGroup] Using css pseudo selectors for button group styles #41456
Conversation
Netlify deploy previewhttps://deploy-preview-41456--material-ui.netlify.app/ Bundle size reportDetails of bundle changes (Toolpad) |
Really appreciate the PR. The reason to use <div>
<style>…</style>
<button>…</button>
<style>…</style>
<button>…</button>
<style>…</style>
<button>…</button>
</div> I would not change anything at this point given we are focusing on Material UI v6. Open for other solutions as well. |
Wouldn't button:first-of-type cover that use case? |
It wouldn't if the |
Thank you! I will look at the umbrella issue as you suggested, I would love to contribute! Will close this PR for now until I think of a better solution. |
Related issues: #39372 #40021
This is a proposal pull request which works and fixes the mentioned issues, using pseudo selectors works fine.
However is there a reason we use data-ids instead of pseudo selectors? If this is good, I will also update the tests.