Skip to content

Use the elm-html style function for style attributes #6

Open
@mbylstra

Description

@mbylstra

Currently, rather than using the style function, the attribute function is being used for style attributes.

currently

<div style="background-color: red;"></div>

outputs as

div [ attribute "style" "background-color: red;" ]
    []

but

div [ style [("background-color", "red") ]
    []

would be much nicer

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions