Skip to content

Commit 7cb1535

Browse files
authored
Merge pull request #2029 from dxc-technology/Mil4n0r/fix_doc_typos
Added missing information in documentation
2 parents b5a90be + c1d7659 commit 7cb1535

File tree

7 files changed

+47
-7
lines changed

7 files changed

+47
-7
lines changed

website/screens/components/breadcrumbs/code/BreadcrumbsCodePage.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import {
1111
import TableCode, { ExtendedTableCode } from "@/common/TableCode";
1212
import basicUsage from "./examples/basicUsage";
1313
import nextJS from "./examples/nextJS";
14+
import StatusBadge from "@/common/StatusBadge";
1415

1516
const itemTypeString = `{
1617
href?: string;
@@ -45,7 +46,12 @@ const sections = [
4546
</td>
4647
</tr>
4748
<tr>
48-
<td>items</td>
49+
<td>
50+
<DxcFlex direction="column" gap="0.25rem" alignItems="baseline">
51+
<StatusBadge status="required" />
52+
items
53+
</DxcFlex>
54+
</td>
4955
<td>
5056
<TableCode>Item[]</TableCode>
5157
<p>

website/screens/components/bulleted-list/code/BulletedListCodePage.tsx

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import {
1212
import basicUsage from "./examples/basicUsage";
1313
import nestedList from "./examples/nestedList";
1414
import TableCode from "@/common/TableCode";
15+
import StatusBadge from "@/common/StatusBadge";
1516

1617
const sections = [
1718
{
@@ -84,7 +85,16 @@ const sections = [
8485
</thead>
8586
<tbody>
8687
<tr>
87-
<td>children</td>
88+
<td>
89+
<DxcFlex
90+
direction="column"
91+
gap="0.25rem"
92+
alignItems="baseline"
93+
>
94+
<StatusBadge status="required" />
95+
children
96+
</DxcFlex>
97+
</td>
8898
<td>
8999
<TableCode>React.ReactNode</TableCode>
90100
</td>

website/screens/components/contextual-menu/code/ContextualMenuCodePage.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import Example from "@/common/example/Example";
77
import { DxcFlex, DxcTable } from "@dxc-technology/halstack-react";
88
import actionMenu from "./examples/actionMenu";
99
import navigationMenu from "./examples/navigationMenu";
10+
import StatusBadge from "@/common/StatusBadge";
1011

1112
const itemTypeString = `{
1213
badge?: React.ReactElement;
@@ -40,7 +41,12 @@ const sections = [
4041
<th>Default</th>
4142
</tr>
4243
<tr>
43-
<td>items</td>
44+
<td>
45+
<DxcFlex direction="column" gap="0.25rem" alignItems="baseline">
46+
<StatusBadge status="required" />
47+
items
48+
</DxcFlex>
49+
</td>
4450
<td>
4551
<TableCode style={{ fontSize: "0.875rem" }}>
4652
(Item | GroupItem)[] | Section[]

website/screens/components/flex/code/FlexCodePage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ const sections = [
4646
<td>
4747
<TableCode>
4848
'flex-start' | 'flex-end' | 'start' | 'end' | 'left' | 'right' |
49-
'center' | 'space-between' | 'space-around' | 'space-evenly
49+
'center' | 'space-between' | 'space-around' | 'space-evenly'
5050
</TableCode>
5151
</td>
5252
<td>

website/screens/components/paragraph/code/ParagraphCodePage.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { DxcFlex, DxcTable } from "@dxc-technology/halstack-react";
66
import basicUsage from "./examples/basicUsage";
77
import multipleParagraphs from "./examples/multipleParagraphs";
88
import TableCode from "@/common/TableCode";
9+
import StatusBadge from "@/common/StatusBadge";
910

1011
const sections = [
1112
{
@@ -19,7 +20,12 @@ const sections = [
1920
<th>Default</th>
2021
</tr>
2122
<tr>
22-
<td>children</td>
23+
<td>
24+
<DxcFlex direction="column" gap="0.25rem" alignItems="baseline">
25+
<StatusBadge status="required" />
26+
children
27+
</DxcFlex>
28+
</td>
2329
<td>
2430
<TableCode>React.ReactNode</TableCode>
2531
</td>

website/screens/components/quick-nav/code/QuickNavCodePage.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import Example from "@/common/example/Example";
66
import quickNav from "./examples/quickNav";
77
import withContent from "./examples/withContent";
88
import TableCode from "@/common/TableCode";
9+
import StatusBadge from "@/common/StatusBadge";
910

1011
const sections = [
1112
{
@@ -30,7 +31,12 @@ const sections = [
3031
<td>-</td>
3132
</tr>
3233
<tr>
33-
<td>links</td>
34+
<td>
35+
<DxcFlex direction="column" gap="0.25rem" alignItems="baseline">
36+
<StatusBadge status="required" />
37+
links
38+
</DxcFlex>
39+
</td>
3440
<td>
3541
<TableCode>{"{ label: string; links?: Link[]; }[]"}</TableCode>
3642
</td>

website/screens/components/status-light/code/StatusLightCodePage.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import DocFooter from "@/common/DocFooter";
55
import TableCode from "@/common/TableCode";
66
import Example from "@/common/example/Example";
77
import basicUsage from "./examples/basicUsage";
8+
import StatusBadge from "@/common/StatusBadge";
89

910
const sections = [
1011
{
@@ -36,7 +37,12 @@ const sections = [
3637
</td>
3738
</tr>
3839
<tr>
39-
<td>label</td>
40+
<td>
41+
<DxcFlex direction="column" gap="0.25rem" alignItems="baseline">
42+
<StatusBadge status="required" />
43+
label
44+
</DxcFlex>
45+
</td>
4046
<td>
4147
<TableCode>string</TableCode>
4248
</td>

0 commit comments

Comments
 (0)