Skip to content
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

fix(web-components): fix for setTheme in Firefox #31911

Conversation

davatron5000
Copy link
Contributor

Previous Behavior

The default theme was not being set in Firefox. Firefox currently SUPPORTS_ADOPTED_STYLESHEETS but does not SUPPORTS_REGISTER_PROPERTY. The CSSStylesheet being adopted on the first pass was an empty stylesheet. And because there were no tokens registered, styles weren't applied.

New Behavior

This change will always update the stylesheet to the new theme and then adopt the stylesheet if it hasn't been adopted already.

Related Issue(s)

  • Fixes #

@fabricteam
Copy link
Collaborator

📊 Bundle size report

✅ No changes found

@davatron5000 davatron5000 merged commit 0777a2f into microsoft:master Jul 3, 2024
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants