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

fix(dark): classname cannot be applied to itself #5120

Merged
merged 1 commit into from
Mar 13, 2023
Merged

fix(dark): classname cannot be applied to itself #5120

merged 1 commit into from
Mar 13, 2023

Conversation

ovflowd
Copy link
Member

@ovflowd ovflowd commented Mar 13, 2023

This PR fixes the bug that was introduced on #5079 because class names when applied to the own element cannot use the same connotation as before.

Explanation: If you apply a class name to "body", to apply styling when that classname is applied, you should use "body.classname" not ".classname body", the second approach only works for children elements.

@ovflowd
Copy link
Member Author

ovflowd commented Mar 13, 2023

@nodejs/website merging this as being a hot-fix

@ovflowd ovflowd merged commit 4a0a2ce into nodejs:main Mar 13, 2023
@ovflowd ovflowd deleted the fix/color-schema-with-classname branch March 13, 2023 20:47
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.

1 participant