-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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
[Select] Fix specificity issue #16137
Conversation
Details of bundle changes.Comparing: a36912f...4cc6d7b
|
Either we need to add !important. Or we may need to change the order of the styling. Either way it should work. |
Let me know what you think about it. @oliviertassinari |
I hight doubt that changing the CSS injection order within the component will be of any help. Did you confirm that it had any impact before asking for a review? I'm trying a different strategy, something I have first discovered in #14580. I believe this is simpler. My only fear would be with the BC potential of the change. I would suspect a minimal impact, but to double check. |
@oliviertassinari I have confirmed that changing the order works. |
@aditya1906 Doesn't work on my side:
|
That is very strange. |
@aditya1906 e82bb07 shouldn't work in theory for the reason explained in: #16136 (comment). |
Okay. So since both Select and Outline have padding right. So hence there is a conflict between the 2 values? |
Seems like this at least a breaking change for material-table. It introduce some additional spacing: Is this expected? |
No, taking care of it. |
Fix for #16136 The style for select is overwritten by the Outlined style. This should solve the issue.
@aditya1906 @oliviertassinari I see that this PR was accepted as a bugfix, but why wan't it marked as a breaking change? It changes the output DOM structure, so users will definitely notice. |
@havenchyk One could argue that most bug fixes are breaking change, your logic might rely on it to work. I agree, it's a grey area. |
@oliviertassinari From what I see, this fix solves some problem, but breaks existing user components that rely on the root class, that's a breaking change for sure. It doesn't really matter what my logic relies on, it's just logical. Don't get me wrong, I'm not trying to say that you did something in not correct way, but I'm trying to understand your logic on why this change wasn't marked as breaking. Since changelog is generated automatically, simple note on the commit could help users to understand that upgrade can break their code. I don't maintain opensource projects, so I might be wrong here. |
Closes #16136
The style for select is overwritten by the Outlined style. This should solve the issue.