Last active
December 22, 2015 20:49
-
-
Save briansage/6529309 to your computer and use it in GitHub Desktop.
Pattern for B/A tests that show/hide two sets of existing content. Switch the body className bv-inactive to bv-active to switch between test versions.
This file contains 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
%body.bv-inactive | |
.test-container-a.bv-active-hidden | |
.stuff | |
.test-container-b.bv-inactive-hidden | |
.different-stuff | |
.test-container-a.bv-active-hidden | |
.more-different-stuff | |
.test-container-b.bv-inactive-hidden | |
.same-stuff | |
%style{type: "text/css"} | |
:scss | |
.bv-inactive .bv-inactive-hidden { | |
display: none; | |
} | |
.bv-active .bv-active-hidden { | |
display: none; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment