-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
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
[Tabs] Alternative way to disable ":first-child is unsafe" error #28982
Conversation
879e0b7
to
3085d3a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed tests are usually an indicator that a change is breaking existing behaivor. Either make the tests purely additive, explain why this is a bugfix not a feature or delay until v6
@eps1lon the tests changes are coming from #28890 This PR is summarizing the alternatives proposed on that PR after it was merged. I guess this is why some tests need to be adjusted (it is the tests added in the mentioned PR, not something that was implemented before). |
@eps1lon Sorry for confusion. The tests modified in this PR hadn't existed prior to #28890 (the first iteration to address this bug). So, the tests can be considered purely additive. |
This PR introduces 2 alternatives to disable the ":first-child is unsafe" error:
icon
with aspan
with a classname and target the classname for styling:Since the first iteration changes the DOM rendered, I prepared two alternatives:
(1) Use
'/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */'
(2) Clone
icon
with a classname and target the classname for styling: