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

Lacking picture element #203

Open
empeje opened this issue Jan 13, 2020 · 2 comments · May be fixed by #241
Open

Lacking picture element #203

empeje opened this issue Jan 13, 2020 · 2 comments · May be fixed by #241

Comments

@empeje
Copy link

empeje commented Jan 13, 2020

I'm trying to use picture element for my dark mode setup in my Elm app, however, I see that no picture element in elm/html, when we'll have this element shipped?

Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/picture

@rlefevre
Copy link
Member

rlefevre commented Jan 14, 2020

Note that for now, you can use Html.node "picture" instead, or define your own:

import Html exposing (Html)

picture : List (Html.Attribute msg) -> List (Html msg) -> Html msg
picture =
    Html.node "picture"

@empeje
Copy link
Author

empeje commented Jan 14, 2020

Thanks @rlefevre

@caseyWebb caseyWebb linked a pull request Jun 15, 2022 that will close this issue
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 a pull request may close this issue.

2 participants