Skip to content

Allow setting :visited styles on a link #150

Description

@xtian

The big picture of what I'm trying to do

I'm trying to add visited styles to a link. In some cases (e.g., a long list of links or links embedded into body copy) this can be a useful affordance for users. It doesn't seem like this is possible currently, however.

What I did

styleSheet : Style.Stylesheet Styles variation
styleSheet =
    Style.stylesheet
        [ Style.style Link
            [ Style.Color.text blue
            , Style.pseudo "visited" [ Style.Color.text purple ]
            ]
        ]

What I Expected To Happen

I expected visited links to change text color.

What Actually Happened

The link styles were assigned to an element internal to the <a> so the visited styling did not take effect.

Versions

  • Elm: 0.18
  • style-elements: 4.3.0

Activity

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions