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

[DO NOT MERGE] feat/WEB-3065 limit theme to container #3356

Closed
wants to merge 15 commits into from

Conversation

hdz-666
Copy link
Collaborator

@hdz-666 hdz-666 commented Nov 5, 2024

Details(context, link the issue, how was the bug fixed, what does the new feature do)

Implementation note, gotchas, related work and Future TODOs (optional)

Copy link

vercel bot commented Nov 5, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
dashboard-app ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 5, 2024 7:29am
storybook-app ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 5, 2024 7:29am

@hdz-666 hdz-666 requested a review from ygit November 5, 2024 07:20
@hdz-666 hdz-666 changed the base branch from main to dev November 5, 2024 07:21
@hdz-666 hdz-666 marked this pull request as draft November 5, 2024 07:21
@hdz-666 hdz-666 changed the title feat/WEB-3065 limit theme to container [DO NOT MERGE] feat/WEB-3065 limit theme to container Nov 5, 2024
@@ -64,13 +66,17 @@ export const HMSThemeProvider: React.FC<React.PropsWithChildren<ThemeProviderPro
if (!isBrowser) {
return updatedTheme;
}
let element = document.querySelector(container);
Copy link
Collaborator

Choose a reason for hiding this comment

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

This throws an error if container is an empty string. Let's add a check

Copy link
Contributor

This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 10 days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants