Skip to content

feat: toggle theme in demo pages#6571

Open
GZolla wants to merge 3 commits intomainfrom
gzolla/theme-demos
Open

feat: toggle theme in demo pages#6571
GZolla wants to merge 3 commits intomainfrom
gzolla/theme-demos

Conversation

@GZolla
Copy link
Contributor

@GZolla GZolla commented Feb 6, 2026

@GZolla GZolla requested a review from a team as a code owner February 6, 2026 17:26
@github-actions
Copy link
Contributor

github-actions bot commented Feb 6, 2026

Thanks for the PR! 🎉

We've deployed an automatic preview for this PR - you can see your changes here:

URL https://live.d2l.dev/prs/BrightspaceUI/core/pr-6571/

Note

The build needs to finish before your changes are deployed.
Changes to the PR will automatically update the instance.

super.connectedCallback();
document.addEventListener('d2l-flags-known', this.#handleFlagsKnownBound);
localeSettings.addChangeListener(this.#handleDocumentLanguageChangeBound);
this._theme = document.documentElement.dataset.theme || 'os';
Copy link
Contributor

Choose a reason for hiding this comment

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

Setting os as the default means that other devs who use dark mode in their OS will begin seeing their demos in dark mode right away. Not sure we're ready for that. Maybe we want to omit setting the theme default until we are ready to address questions.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants