Skip to content

Commit baf2e0a

Browse files
xxxle0tw15eganjoshblack
committed
fix: duplicate id data-table in carbon-website (#5080)
* fix: duplicate id data-table in carbon-website * fix: fix duplicate label of a rest of page Co-authored-by: TJ Egan <tw15egan@gmail.com> Co-authored-by: Josh Black <josh@josh.black>
1 parent fb7531c commit baf2e0a

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

packages/components/src/components/data-table/data-table.config.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,8 @@ const columnsExpandable = [
165165
name: 'select',
166166
title: 'Label name',
167167
checkbox: true,
168-
checkboxId: `${prefix}--checkbox-20`,
169-
checkboxName: 'checkbox-20',
168+
checkboxId: `${prefix}--checkbox-21`,
169+
checkboxName: 'checkbox-21',
170170
checkboxValue: 'green',
171171
},
172172
{
@@ -209,10 +209,10 @@ const columnsSmall = columns.slice(1, -1).map(column => ({
209209

210210
const rows = [
211211
{
212-
id: 'row-id-13',
212+
id: 'row-id-16',
213213
select: {
214-
id: `${prefix}--checkbox-13`,
215-
name: 'checkbox-13',
214+
id: `${prefix}--checkbox-16`,
215+
name: 'checkbox-16',
216216
value: 'green',
217217
label: 'Label name',
218218
},
@@ -338,8 +338,8 @@ const rowsExpandable = [
338338
` <p>A variety of content types can live here. Be sure to follow Carbon design guidelines for spacing and alignment.</p>
339339
`,
340340
select: {
341-
id: `${prefix}--checkbox-12`,
342-
name: 'checkbox-12',
341+
id: `${prefix}--checkbox-10`,
342+
name: 'checkbox-10',
343343
value: 'green',
344344
label: 'Label name',
345345
},

0 commit comments

Comments
 (0)