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

Change casing of window variable on dark-mode page #1773

Merged
merged 1 commit into from
Jan 31, 2024

Conversation

arung-agamani
Copy link

Renamed Window.matchMedia() to window.matchMedia() to give clarity that method of global variable window is being referred instead of Window interface instance method, and also analogous with the given example following the passage.

Renamed `Window.matchMedia()` to `window.matchMedia()` to give clarity that instance method is being referred and also analogous with the given example below.
Copy link

vercel bot commented Jan 24, 2024

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

Name Status Preview Comments Updated (UTC)
tailwindcss-com ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 24, 2024 3:27am

@reinink
Copy link
Member

reinink commented Jan 31, 2024

Hey thanks for this suggestion. So technically I think what we have here is fine given that it's a pretty common convention to refer to interfaces and classes in this way (the Window interface in this case), even though the global instance variable is window. That said, I don't think this change hurts the legibility either, so happy to merge it in 👍

@reinink reinink self-assigned this Jan 31, 2024
@reinink reinink merged commit 9b046d8 into tailwindlabs:master Jan 31, 2024
2 checks passed
@reinink reinink changed the title Fix: typo on window variable Change casing of window variable on dark-mode page Jan 31, 2024
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