Skip to content

Lacking picture element #203

Open

Description

@empeje

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

Activity

  1. rlefevre commented on Jan 14, 2020

    @rlefevre
    Member

    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"
    
  2. empeje commented on Jan 14, 2020

    @empeje
    Author

    Thanks @rlefevre

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions