Skip to content

Commit 23a4169

Browse files
authored
Merge pull request #2364 from dxc-technology/PelayoFelgueroso/tableCode-fix
Fix string default values in documentation
2 parents a9ee6dd + 55a2c00 commit 23a4169

File tree

5 files changed

+24
-12
lines changed

5 files changed

+24
-12
lines changed

apps/website/screens/components/data-grid/code/DataGridCodePage.tsx

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,9 @@ const sections = [
146146
<TableCode>number</TableCode>
147147
</td>
148148
<td>Number of items per page.</td>
149-
<td>5</td>
149+
<td>
150+
<TableCode>5</TableCode>
151+
</td>
150152
</tr>
151153
<tr>
152154
<td>itemsPerPageFunction</td>
@@ -270,15 +272,19 @@ const sections = [
270272
<TableCode>boolean</TableCode>
271273
</td>
272274
<td>If true, a select component for navigation between pages will be displayed.</td>
273-
<td>true</td>
275+
<td>
276+
<TableCode>true</TableCode>
277+
</td>
274278
</tr>
275279
<tr>
276280
<td>showPaginator</td>
277281
<td>
278282
<TableCode>boolean</TableCode>
279283
</td>
280284
<td>If true, paginator will be displayed.</td>
281-
<td>false</td>
285+
<td>
286+
<TableCode>false</TableCode>
287+
</td>
282288
</tr>
283289
<tr>
284290
<td>summaryRow</td>

apps/website/screens/components/date-input/code/DateInputCodePage.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ const sections = [
3131
Specifies a string to be used as the name for the date input element when no <Code>label</Code> is
3232
provided.
3333
</td>
34-
<td>'Date input'</td>
34+
<td>
35+
<TableCode>'Date input'</TableCode>
36+
</td>
3537
</tr>
3638
<tr>
3739
<td>autocomplete</td>

apps/website/screens/components/select/code/SelectCodePage.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,9 @@ const sections = [
269269
Defines the search mode when searchable is true. If true, matches options that start with the search text.
270270
If false, matches options that contain the search text anywhere in their label.
271271
</td>
272-
<td>false</td>
272+
<td>
273+
<TableCode>false</TableCode>
274+
</td>
273275
</tr>
274276
<tr>
275277
<td>size</td>

apps/website/screens/components/textarea/code/TextareaCodePage.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ const sections = [
2929
<td>
3030
Specifies a string to be used as the name for the textarea element when no <Code>label</Code> is provided.
3131
</td>
32-
<td>'Text area'</td>
32+
<td>
33+
<TableCode>'Text area'</TableCode>
34+
</td>
3335
</tr>
3436
<tr>
3537
<td>autocomplete</td>

apps/website/screens/components/typography/code/TypographyCodePage.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ const sections = [
5454
</td>
5555
<td>Color of the text.</td>
5656
<td>
57-
<TableCode>var(--color-fg-neutral-dark)</TableCode>
57+
<TableCode>'var(--color-fg-neutral-dark)'</TableCode>
5858
</td>
5959
</tr>
6060
<tr>
@@ -78,7 +78,7 @@ const sections = [
7878
Specifies the <Code>font-family</Code> CSS property of the component.
7979
</td>
8080
<td>
81-
<TableCode>var(--typography-font-family)</TableCode>
81+
<TableCode>'var(--typography-font-family)'</TableCode>
8282
</td>
8383
</tr>
8484
<tr>
@@ -90,7 +90,7 @@ const sections = [
9090
Specifies the <Code>font-size</Code> CSS property of the component.
9191
</td>
9292
<td>
93-
<TableCode>var(--typography-body-m)</TableCode>
93+
<TableCode>'var(--typography-body-m)'</TableCode>
9494
</td>
9595
</tr>
9696
<tr>
@@ -114,7 +114,7 @@ const sections = [
114114
Specifies the <Code>font-weight</Code> CSS property of the component.
115115
</td>
116116
<td>
117-
<TableCode>var(--typography-body-regular)</TableCode>
117+
<TableCode>'var(--typography-body-regular)'</TableCode>
118118
</td>
119119
</tr>
120120
<tr>
@@ -126,7 +126,7 @@ const sections = [
126126
Specifies the <Code>letter-spacing</Code> CSS property of the component.
127127
</td>
128128
<td>
129-
<TableCode>var(--spacing-gap-none)</TableCode>
129+
<TableCode>'var(--spacing-gap-none)'</TableCode>
130130
</td>
131131
</tr>
132132
<tr>
@@ -138,7 +138,7 @@ const sections = [
138138
Specifies the <Code>line-height</Code> CSS property of the component.
139139
</td>
140140
<td>
141-
<TableCode>var(--height-s)</TableCode>
141+
<TableCode>'var(--height-s)'</TableCode>
142142
</td>
143143
</tr>
144144
<tr>

0 commit comments

Comments
 (0)