Skip to content
This repository has been archived by the owner on Aug 19, 2022. It is now read-only.

When hovering, remove :hover from the previous hovered component #368

Closed

Conversation

wbecker
Copy link

@wbecker wbecker commented Sep 25, 2015

Fixes #367

I haven't written tests around this, as I'm not sure you will accept it due to the (admittedly ugly!) global state.

However, this has solved my problem, when running it locally.

If this is accepted in theory, I'll make it ready for pulling!

@ianobermiller
Copy link
Contributor

The one thing this doesn't cover is nested elements, where it is certainly possible to have :hover on multiple elements at once.

See example: https://jsbin.com/lenave/1/edit?js,console,output

@wbecker
Copy link
Author

wbecker commented Sep 25, 2015

Good point!

@ianobermiller
Copy link
Contributor

Closing this PR for now, feel free to reopen if you can think of a better approach.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants