File tree Expand file tree Collapse file tree 1 file changed +15
-13
lines changed
sections/executive-team-section Expand file tree Collapse file tree 1 file changed +15
-13
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,9 @@ const AvatarList = styled.div`
4949const LinkButtonContainer = styled . div `
5050 display: flex;
5151 flex-direction: column;
52+ align-self: flex-end;
5253 margin-top: ${ rem ( '24px' ) } ;
54+ margin-bottom: ${ rem ( '32px' ) } ;
5355`
5456
5557const LinkButton = styled . button `
@@ -131,20 +133,20 @@ const ExecutiveTeamSection = () => {
131133 { peopleToShow . map ( ( person ) => (
132134 < ExecutiveAvatar { ...person } key = { person . name } />
133135 ) ) }
136+ { isCompactScreen && (
137+ < LinkButtonContainer >
138+ < LinkButton
139+ onClick = { ( ) => setShowAllPeople ( ! showAllPeople ) }
140+ type = "button"
141+ >
142+ < LinkButtonTextContainer >
143+ { showAllPeople ? 'Whole Team' : 'Collapse' }
144+ </ LinkButtonTextContainer >
145+ { showAllPeople ? < ChevronSvg /> : < InvertedChevronSvg /> }
146+ </ LinkButton >
147+ </ LinkButtonContainer >
148+ ) }
134149 </ AvatarList >
135- { isCompactScreen && (
136- < LinkButtonContainer >
137- < LinkButton
138- onClick = { ( ) => setShowAllPeople ( ! showAllPeople ) }
139- type = "button"
140- >
141- < LinkButtonTextContainer >
142- { showAllPeople ? 'Whole Team' : 'Collapse' }
143- </ LinkButtonTextContainer >
144- { showAllPeople ? < ChevronSvg /> : < InvertedChevronSvg /> }
145- </ LinkButton >
146- </ LinkButtonContainer >
147- ) }
148150 </ FlexSectionContents >
149151 </ StyledSection >
150152 )
You can’t perform that action at this time.
0 commit comments