[Tabs] Alternative way to disable ":first-child is unsafe" error#28982
[Tabs] Alternative way to disable ":first-child is unsafe" error#28982hbjORbj merged 3 commits intomui:masterfrom
Conversation
879e0b7 to
3085d3a
Compare
eps1lon
left a comment
There was a problem hiding this comment.
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:
iconwith aspanwith 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
iconwith a classname and target the classname for styling: