Add a class you can use to mock hover styles when you run the visual regression test on the component. I'd stick with :hover in you site/app and just use the class for testing this state.
Created
April 7, 2016 00:19
-
-
Save bjankord/a3e47cf7893045a540594e24917e2da5 to your computer and use it in GitHub Desktop.
Add
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<img src="profile.png" class="avatar" alt="Jane Doe"> | |
<img src="profile.png" class="avatar is-hovered" alt="Jane Doe"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.avatar { | |
// img styles here | |
} | |
.avatar:hover, | |
.avatar.is-hovered { | |
// img hover styles here | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment