diff --git a/v1/lib/core/CodeTabsMarkdownBlock.js b/v1/lib/core/CodeTabsMarkdownBlock.js index 3a19a4a8bd990..e519ad2e2c280 100644 --- a/v1/lib/core/CodeTabsMarkdownBlock.js +++ b/v1/lib/core/CodeTabsMarkdownBlock.js @@ -28,26 +28,34 @@ class MarkdownBlock extends React.Component { return (
- {tabs.map((t, i) => ( -
- {t.label} -
- ))} + {tabs.map((t, i) => { + const id = `tab-group-${groupId}-tab-${t.id}`; + return ( +
+ {t.label} +
+ ); + })}
- {tabs.map((t, i) => ( -
- {t.panelContent} -
- ))} + {tabs.map((t, i) => { + const id = `tab-group-${groupId}-content-${t.id}`; + return ( +
+ {t.panelContent} +
+ ); + })}
);