Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: duplicate id data-table in carbon-website #5080

Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,8 @@ const columnsExpandable = [
name: 'select',
title: 'Label name',
checkbox: true,
checkboxId: `${prefix}--checkbox-20`,
checkboxName: 'checkbox-20',
checkboxId: `${prefix}--checkbox-21`,
checkboxName: 'checkbox-21',
checkboxValue: 'green',
},
{
Expand Down Expand Up @@ -209,10 +209,10 @@ const columnsSmall = columns.slice(1, -1).map(column => ({

const rows = [
{
id: 'row-id-13',
id: 'row-id-16',
select: {
id: `${prefix}--checkbox-13`,
name: 'checkbox-13',
id: `${prefix}--checkbox-16`,
name: 'checkbox-16',
value: 'green',
label: 'Label name',
},
Expand Down Expand Up @@ -338,8 +338,8 @@ const rowsExpandable = [
` <p>A variety of content types can live here. Be sure to follow Carbon design guidelines for spacing and alignment.</p>
`,
select: {
id: `${prefix}--checkbox-12`,
name: 'checkbox-12',
id: `${prefix}--checkbox-10`,
name: 'checkbox-10',
value: 'green',
label: 'Label name',
},
Expand Down