Skip to content

Commit b4ec686

Browse files
authored
Adjust the footer compliance links layout so Terms of use is on the same side as the copyright (#80)
1 parent b363f5a commit b4ec686

1 file changed

Lines changed: 50 additions & 37 deletions

File tree

packages/demo/src/components/Footer.tsx

Lines changed: 50 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,23 @@ const useStyles = makeStyles({
6262
display: 'flex',
6363
flexDirection: 'row',
6464
alignItems: 'center',
65-
justifyContent: 'flex-end',
65+
justifyContent: 'space-between',
6666
gap: '24px',
6767
padding: '16px',
6868
color: 'var(--color-text-light)',
6969
marginTop: '0',
7070
},
71+
linksContainer: {
72+
display: 'flex',
73+
alignItems: 'center',
74+
gap: '24px',
75+
},
76+
copyrightContainer: {
77+
display: 'flex',
78+
alignItems: 'center',
79+
gap: '24px',
80+
},
7181
copyright: {
72-
marginLeft: 'auto',
7382
color: 'var(--color-text-light)',
7483
fontSize: tokens.fontSizeBase200,
7584
},
@@ -179,41 +188,45 @@ export function Footer(): JSX.Element {
179188
</div>
180189
<div className={styles.bottomRowContainer}>
181190
<div className={styles.bottomRow}>
182-
<a
183-
href="https://go.microsoft.com/fwlink/?LinkId=521839"
184-
className={`${styles.link} bottom-section`}
185-
target="_blank"
186-
rel="noopener noreferrer"
187-
>
188-
Privacy & Cookies
189-
</a>
190-
<a
191-
href="https://go.microsoft.com/fwlink/?linkid=2259814"
192-
className={`${styles.link} bottom-section`}
193-
target="_blank"
194-
rel="noopener noreferrer"
195-
>
196-
Consumer Health Privacy
197-
</a>
198-
<a
199-
href="https://www.microsoft.com/trademarks"
200-
className={`${styles.link} bottom-section`}
201-
target="_blank"
202-
rel="noopener noreferrer"
203-
>
204-
Trademarks
205-
</a>
206-
<a
207-
href="https://go.microsoft.com/fwlink/?LinkID=206977"
208-
className={`${styles.link} bottom-section`}
209-
target="_blank"
210-
rel="noopener noreferrer"
211-
>
212-
Terms of use
213-
</a>
214-
<span className={styles.copyright}>
215-
&copy; Microsoft {new Date().getFullYear()}
216-
</span>
191+
<div className={styles.linksContainer}>
192+
<a
193+
href="https://go.microsoft.com/fwlink/?LinkId=521839"
194+
className={`${styles.link} bottom-section`}
195+
target="_blank"
196+
rel="noopener noreferrer"
197+
>
198+
Privacy & Cookies
199+
</a>
200+
<a
201+
href="https://go.microsoft.com/fwlink/?linkid=2259814"
202+
className={`${styles.link} bottom-section`}
203+
target="_blank"
204+
rel="noopener noreferrer"
205+
>
206+
Consumer Health Privacy
207+
</a>
208+
<a
209+
href="https://www.microsoft.com/trademarks"
210+
className={`${styles.link} bottom-section`}
211+
target="_blank"
212+
rel="noopener noreferrer"
213+
>
214+
Trademarks
215+
</a>
216+
</div>
217+
<div className={styles.copyrightContainer}>
218+
<a
219+
href="https://go.microsoft.com/fwlink/?LinkID=206977"
220+
className={`${styles.link} bottom-section`}
221+
target="_blank"
222+
rel="noopener noreferrer"
223+
>
224+
Terms of use
225+
</a>
226+
<span className={styles.copyright}>
227+
&copy; Microsoft {new Date().getFullYear()}
228+
</span>
229+
</div>
217230
</div>
218231
</div>
219232
</footer>

0 commit comments

Comments
 (0)