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

Wrap style node to deal with DarkReader #542

Merged
merged 2 commits into from
Oct 15, 2021

Conversation

bcardiff
Copy link
Contributor

@bcardiff bcardiff commented Oct 8, 2021

Apps using elm-css will break in the presence of DarkReader. This is explained at https://github.com/jinjor/elm-break-dom.

In order to avoid braking the virtual dom diff due to the changes introduced by DarkReader the same workaround as in mdgriffith/elm-ui cab be applied. https://github.com/mdgriffith/elm-ui/blob/acae8857a02e600cc4b4737ca2f70607228b4489/src/Internal/Model.elm#L1824-L1827

This might break view test in the app so I am not sure if this is a breaking change or not.

Copy link
Owner

@rtfeldman rtfeldman left a comment

Choose a reason for hiding this comment

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

Looks great - thanks so much @bcardiff!

By the way, @Arkham confirmed that span works, so going with that!

src/Css/Global.elm Outdated Show resolved Hide resolved
src/VirtualDom/Styled.elm Outdated Show resolved Hide resolved
@rtfeldman rtfeldman merged commit ebb7a25 into rtfeldman:master Oct 15, 2021
@rtfeldman
Copy link
Owner

Published as 17.0.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.

2 participants