Skip to content

docs(website): correct theme color blink when playground is initialized #4870

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

Merged
merged 1 commit into from
Apr 26, 2022

Conversation

armano2
Copy link
Collaborator

@armano2 armano2 commented Apr 26, 2022

PR Checklist

Overview

@armano2 armano2 added the documentation Documentation ("docs") that needs adding/updating label Apr 26, 2022
@armano2 armano2 self-assigned this Apr 26, 2022
@nx-cloud
Copy link

nx-cloud bot commented Apr 26, 2022

☁️ Nx Cloud Report

CI is running/has finished running commands for commit 541c29e. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this branch


✅ Successfully ran 43 targets

Sent with 💌 from NxCloud.

@typescript-eslint

This comment was marked as resolved.

@netlify
Copy link

netlify bot commented Apr 26, 2022

Deploy Preview for typescript-eslint ready!

Name Link
🔨 Latest commit 541c29e
🔍 Latest deploy log https://app.netlify.com/sites/typescript-eslint/deploys/6267de6cc3b2340009079a85
😎 Deploy Preview https://deploy-preview-4870--typescript-eslint.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

Copy link
Member

@bradzacher bradzacher left a comment

Choose a reason for hiding this comment

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

ezpz - thanks for this!

@bradzacher bradzacher changed the title fix(website): correct theme color blink when playground is initialized docs(website): correct theme color blink when playground is initialized Apr 26, 2022
@bradzacher bradzacher merged commit acb5310 into main Apr 26, 2022
@bradzacher bradzacher deleted the fix/playground-theme-blink-4869 branch April 26, 2022 20:53
@@ -34,6 +35,7 @@ export const useSandboxServices = (
): Error | SandboxServices | undefined => {
const [services, setServices] = useState<Error | SandboxServices>();
const [loadedTs, setLoadedTs] = useState<string>(props.ts);
const { isDarkTheme } = useColorMode();
Copy link
Member

Choose a reason for hiding this comment

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

isDarkTheme is deprecated—you should see a warning in the console in development (it probably is not transparent enough, considering most people don't develop with their consoles open all the time). You should use const { colorMode } = useColorMode() instead

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
documentation Documentation ("docs") that needs adding/updating
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Docs: Dark mode playground applies dark theme to late and causes screen to blink
3 participants