Repository navigation
feat!: Reset inherited styles inside shadow root - #1269
Merged
Merged
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## 0.20.0-breaking-changes #1269 +/- ##
===========================================================
- Coverage 80.24% 79.96% -0.29%
===========================================================
Files 127 126 -1
Lines 6070 5964 -106
Branches 1020 998 -22
===========================================================
- Hits 4871 4769 -102
+ Misses 1184 1178 -6
- Partials 15 17 +2 ☔ View full report in Codecov by Sentry. |
aklinker1
marked this pull request as ready for review
December 11, 2024 21:42
aklinker1
added a commit
that referenced
this pull request
Dec 25, 2024
aklinker1
added a commit
that referenced
this pull request
Dec 29, 2024
aklinker1
added a commit
that referenced
this pull request
Dec 29, 2024
aklinker1
added a commit
that referenced
this pull request
Mar 21, 2025
aklinker1
added a commit
that referenced
this pull request
Mar 21, 2025
aklinker1
added a commit
that referenced
this pull request
Mar 21, 2025
aklinker1
added a commit
that referenced
this pull request
Mar 21, 2025
aklinker1
added a commit
that referenced
this pull request
Mar 28, 2025
aklinker1
added a commit
that referenced
this pull request
Mar 28, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
BREAKING CHANGE: Before, if you use
createShadowRootUi, some styles set on the webpage'shtmlelement would effect your UI in the shadow root. By default, WXT now applies a CSS reset to prevent your UI from inheriting any styles from the webpage.Double check that your
createShadowRootUIUIs are styled properly. If not:inheritStyles: true:const ui = await createShadowRootUi({ + inheritStyles: true, // ... })This is a fairly low-impact breaking change. If you needed this reset, you were probably already doing it yourself and this will have no effect. If you didn't need to reset any styles, this shouldn't have any effect.
This closes #1195.