Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit b2a4330

Browse files
authored
fix(design): some small design fixes (#2713)
1 parent 5968103 commit b2a4330

File tree

14 files changed

+31
-29
lines changed

14 files changed

+31
-29
lines changed

src/components/Article/index.module.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
.article {
2-
max-width: 768px;
2+
max-width: 980px;
33
overflow-wrap: break-word;
44
padding: var(--space-80) 0 var(--space-24) var(--space-128);
5-
text-transform: capitalize;
6-
width: calc(100% - 36rem);
5+
width: calc(100vw - 36rem);
76

87
.headline {
98
margin: 0 0 var(--space-40) 0;
109
padding: 0;
10+
text-transform: capitalize;
1111

1212
@media (max-width: 800px) {
1313
font-size: var(--font-size-display3);

src/components/Header/__tests__/__snapshots__/index.test.tsx.snap

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ exports[`Tests for Header component Theme color switcher skips rendering in case
4040
</li>
4141
<li>
4242
<a
43-
href="/api/documentation/"
43+
href="/api/"
4444
>
4545
API Docs
4646
</a>
@@ -222,7 +222,7 @@ exports[`Tests for Header component renders correctly 1`] = `
222222
</li>
223223
<li>
224224
<a
225-
href="/api/documentation/"
225+
href="/api/"
226226
>
227227
API Docs
228228
</a>
@@ -404,7 +404,7 @@ exports[`Tests for Header component renders shorter menu items for mobile 1`] =
404404
</li>
405405
<li>
406406
<a
407-
href="/api/documentation/"
407+
href="/api/"
408408
>
409409
API Docs
410410
</a>

src/components/Header/index.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,7 @@ const Header = (): JSX.Element => {
3333
</Link>
3434
</li>
3535
<li>
36-
<Link
37-
to="/api/documentation/"
38-
activeClassName={styles.active}
39-
partiallyActive
40-
>
36+
<Link to="/api/" activeClassName={styles.active} partiallyActive>
4137
<FormattedMessage id="components.header.links.docs" />
4238
</Link>
4339
</li>

src/components/Layout/__tests__/__snapshots__/index.test.tsx.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ exports[`Layout component renders correctly with data 1`] = `
4343
</li>
4444
<li>
4545
<a
46-
href="/api/documentation/"
46+
href="/api/"
4747
>
4848
API Docs
4949
</a>

src/components/Layout/__tests__/__snapshots__/page.test.tsx.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ exports[`PageLayout component renders correctly with data 1`] = `
4343
</li>
4444
<li>
4545
<a
46-
href="/api/documentation/"
46+
href="/api/"
4747
>
4848
API Docs
4949
</a>

src/components/TableOfContents/index.module.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
strong {
55
display: inline-block;
6-
font-size: 0.67em;
6+
font-size: var(--font-size-body3);
77
margin: 0;
88
text-transform: uppercase;
99
}

src/components/TableOfContents/index.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ interface Props {
88
tableOfContents?: PageTableOfContents;
99
}
1010

11-
const tag = (t: string) => {
11+
// This adds the Class and Event prefixes
12+
// To the Headings of Table of Contents
13+
const prefix = (t: string) => {
1214
switch (t) {
1315
case 'C':
1416
return 'Class: ';
1517
case 'E':
1618
return 'Event: ';
17-
case 'M':
18-
return 'Method: ';
1919
default:
2020
return '';
2121
}
@@ -27,7 +27,7 @@ const removeApiSpanTagFromItem = (item: TableOfContentsItem) => ({
2727
? item.url.replace(/datatag-(tagc|tagm|tage)--/, '')
2828
: undefined,
2929
title: item.title
30-
? item.title.replace(/<DataTag tag="(M|C|E)" \/> /, (_, t) => tag(t))
30+
? item.title.replace(/<DataTag tag="(M|C|E)" \/> /, (_, t) => prefix(t))
3131
: undefined,
3232
});
3333

src/pages/download/__tests__/__snapshots__/index.test.tsx.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ exports[`Download page renders correctly 1`] = `
4343
</li>
4444
<li>
4545
<a
46-
href="/api/documentation/"
46+
href="/api/"
4747
>
4848
API Docs
4949
</a>
@@ -936,7 +936,7 @@ exports[`Download page should handle LTS to Current switch 1`] = `
936936
</li>
937937
<li>
938938
<a
939-
href="/api/documentation/"
939+
href="/api/"
940940
>
941941
API Docs
942942
</a>

src/pages/download/__tests__/__snapshots__/package-manager.test.tsx.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ exports[`Package Manager Page renders correctly 1`] = `
4343
</li>
4444
<li>
4545
<a
46-
href="/api/documentation/"
46+
href="/api/"
4747
>
4848
API Docs
4949
</a>

src/pages/resources/__tests__/__snapshots__/index.test.tsx.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ exports[`Resources page renders correctly 1`] = `
4343
</li>
4444
<li>
4545
<a
46-
href="/api/documentation/"
46+
href="/api/"
4747
>
4848
API Docs
4949
</a>

0 commit comments

Comments
 (0)