Skip to content

Fix tooltip dark mode styling#688

Merged
valscion merged 11 commits intowebpack:mainfrom
theEquinoxDev:dark-mode-toggle
Jan 7, 2026
Merged

Fix tooltip dark mode styling#688
valscion merged 11 commits intowebpack:mainfrom
theEquinoxDev:dark-mode-toggle

Conversation

@theEquinoxDev
Copy link
Contributor

Fixes tooltip text and background colors in dark mode by properly scoping the global theme selector when using CSS Modules.

This change addresses the tooltip dark-mode styling issue discussed in:
#687

Copy link
Member

@valscion valscion left a comment

Choose a reason for hiding this comment

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

Looks good, thanks! Care to add a changelog entry as well?

@theEquinoxDev
Copy link
Contributor Author

Added a changelog entry for the tooltip dark-mode fix. Thanks for the review!

}

:global(html[data-theme='dark']) .container {
background: #1f2937;
Copy link
Member

Choose a reason for hiding this comment

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

A little nitpick, can you make the colors variables and use those instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for pointing that out! Updated the tooltip styles to use the existing theme color variables. Let me know if you'd like any other changes.

Copy link
Member

@valscion valscion left a comment

Choose a reason for hiding this comment

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

Yeah this would be good to go to me. I assume it works as expected.

I took the liberty to fix the entry position in changelog.

@valscion valscion merged commit 241fe8c into webpack:main Jan 7, 2026
5 checks passed
@theEquinoxDev
Copy link
Contributor Author

Great, thanks for the review and for taking care of the changelog entry. really appreciate it! Thank you.

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.

3 participants