Skip to content

Commit 47d5e22

Browse files
authored
allow opting into preview labs redesigns using server side experiment as well as environment level switch (#14645)
1 parent 8f446a1 commit 47d5e22

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

dotcom-rendering/src/layouts/FrontLayout.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,14 @@ export const FrontLayout = ({ front, NAV }: Props) => {
134134

135135
const contributionsServiceUrl = getContributionsServiceUrl(front);
136136

137-
const showLabsRedesign = !!front.config.switches.guardianLabsRedesign;
137+
/** We allow the labs redesign to be shown if:
138+
* - the feature switch is ON
139+
* OR
140+
* - the user is opted into the 0% server side test
141+
*/
142+
const showLabsRedesign =
143+
!!front.config.switches.guardianLabsRedesign ||
144+
abTests.labsRedesignVariant === 'variant';
138145

139146
const fallbackAspectRatio = (collectionType: DCRContainerType) => {
140147
switch (collectionType) {

0 commit comments

Comments
 (0)