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

Allow multiple css attributes on root node #566

Merged

Conversation

micahhahn
Copy link
Contributor

@micahhahn micahhahn commented Jan 13, 2022

Fix #558

After discussion on #558 with @rtfeldman we decided that the cat is out of the bag on restricting users from being able to apply multiple css attributes to a single node. This has already been allowed for child nodes of the node passed to toUnstyled so this PR simply allows this on the root node as well (and we get to pull some code 😁).

This will cause less confusion for users of this library. Previously converting a node to be lazy could cause css styles to be dropped.

@micahhahn micahhahn marked this pull request as ready for review January 13, 2022 00:08
@rtfeldman
Copy link
Owner

Thanks @micahhahn!

@rtfeldman rtfeldman merged commit 85080bd into rtfeldman:master Apr 25, 2022
@rtfeldman
Copy link
Owner

Published as 17.1.1

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.

Different behavior for multiplecss attributes between root of tree and children
2 participants