You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Something I've noticed larger organisations doing is scoping their tests' CSS down to particular variants or tests.
For example, given a test with ID w123 we might apply the classes to the page like so:
<body class="w123 w123-treatment">
And then CSS classes can be written like:
.w123-treatment a.btn {
display: none;
}
This ensures we can lock any events or CSS down to experiments / treatments. It's especially useful in the case where we might have some shared CSS that is injected into the control but it's not strictly needed.
Thoughts on this approach?
The text was updated successfully, but these errors were encountered:
@kingo55
Good idea, so we just need to add the test id and {test id}-{name of chosen recipe} classes to the body tag, right?
Also, I agree with @dapperdrop , using the {test id}-{test state} might be more useful.
Something I've noticed larger organisations doing is scoping their tests' CSS down to particular variants or tests.
For example, given a test with ID
w123
we might apply the classes to the page like so:And then CSS classes can be written like:
This ensures we can lock any events or CSS down to experiments / treatments. It's especially useful in the case where we might have some shared CSS that is injected into the control but it's not strictly needed.
Thoughts on this approach?
The text was updated successfully, but these errors were encountered: