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

Allow setting :visited styles on a link #150

Open
xtian opened this issue May 5, 2018 · 0 comments
Open

Allow setting :visited styles on a link #150

xtian opened this issue May 5, 2018 · 0 comments

Comments

@xtian
Copy link

xtian commented May 5, 2018

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
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

1 participant