File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed
dotcom-rendering/src/components/marketing/shared Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -21,8 +21,12 @@ import type { ChoiceCard } from '@guardian/support-dotcom-components/dist/shared
2121import type { Dispatch , SetStateAction } from 'react' ;
2222import sanitise from 'sanitize-html' ;
2323
24- const supportTierChoiceCardStyles = ( selected : boolean ) => css `
25- display : block;
24+ const supportTierChoiceCardStyles = (
25+ selected : boolean ,
26+ isInABTest : boolean ,
27+ isCollapsed : boolean ,
28+ ) => css `
29+ display : ${ isInABTest && isCollapsed && ! selected ? `none` : `block` } ;
2630 border : ${ selected
2731 ? `2px solid ${ palette . brand [ '500' ] } `
2832 : `1px solid ${ palette . neutral [ 46 ] } ` } ;
@@ -216,7 +220,11 @@ export const ThreeTierChoiceCards = ({
216220 < ChoiceCardPill pill = { pill } />
217221 ) }
218222 < label
219- css = { supportTierChoiceCardStyles ( selected ) }
223+ css = { supportTierChoiceCardStyles (
224+ selected ,
225+ isInTest ,
226+ isCollapsed ,
227+ ) }
220228 htmlFor = { radioId }
221229 >
222230 < Radio
You can’t perform that action at this time.
0 commit comments