Skip to content
This repository was archived by the owner on Oct 16, 2026. It is now read-only.

fix(dev): keep error overlay CSS in adoptedStyleSheets - #68

Merged
kody-bot merged 1 commit into
mainfrom
cursor/kody-dev-overlay-shadow-css-354f
Oct 15, 2026
Merged

kody-bot merged 1 commit into
mainfrom
cursor/kody-dev-overlay-shadow-css-354f

Conversation

@kentcdodds

@kentcdodds kentcdodds commented Oct 15, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Move the live-reload error overlay styles from a shadow-DOM <style> text node into CSSStyleSheet / adoptedStyleSheets.
  • Page-text readers no longer pick up the overlay CSS as document text.

Context

Follow-up after the polish stack (#60). Item 5 from the 1.24.0 retest notes (shadow host already existed; CSS was still text in the shadow tree).

Test plan

  • Unit test asserts client source uses adoptedStyleSheets and has no <style> tags
  • CI green
  • Bugbot clean
Open in Web Open in Cursor 

Note

Low Risk
Dev-only overlay presentation change with a source-string regression test; no auth, data, or production runtime impact.

Reviewed by Cursor Bugbot for commit b4b3005. Bugbot is set up for automated code reviews on this repo. Configure here.

Page-text readers were picking up overlay <style> text inside the
shadow root. Move rules into a CSSStyleSheet so only the dialog copy
remains in the text tree.

Co-authored-by: Kent C. Dodds <me+github@kentcdodds.com>
@kody-bot
kody-bot marked this pull request as ready for review October 15, 2026 08:48
@kentcdodds

Copy link
Copy Markdown
Owner Author

bugbot run

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit b4b3005. Configure here.

@kody-bot
kody-bot merged commit b1abc00 into main Oct 15, 2026
7 checks passed
@kody-bot
kody-bot deleted the cursor/kody-dev-overlay-shadow-css-354f branch October 15, 2026 08:52
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 1.26.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants