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

Using Html.Styled.Attributes's css breaks Svg.Styled at runtime #503

Open
tesk9 opened this issue Jul 11, 2019 · 1 comment
Open

Using Html.Styled.Attributes's css breaks Svg.Styled at runtime #503

tesk9 opened this issue Jul 11, 2019 · 1 comment

Comments

@tesk9
Copy link
Contributor

tesk9 commented Jul 11, 2019

import Html.Styled.Attributes exposing (css)
import Svg.Styled as Svg exposing (Svg)

main =
    Svg.svg
        [ css [] ]
        []
        |> Svg.toUnstyled

throws an error: Uncaught TypeError: Cannot assign to read only property 'className' of object '#<SVGSVGElement>'

See https://ellie-app.com/64vQQmzM94Ca1

@1000000000
Copy link

I think this is probably related to the following issues in the elm compiler and elm/svg:

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

No branches or pull requests

2 participants