diff --git a/v1/lib/core/CodeTabsMarkdownBlock.js b/v1/lib/core/CodeTabsMarkdownBlock.js index 3a19a4a8bd990..c11998436b325 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}-${i}`; + return ( +
+ {t.label} +
+ ); + })}
- {tabs.map((t, i) => ( -
- {t.panelContent} -
- ))} + {tabs.map((t, i) => { + const id = `tab-group-${groupId}-content-${t.id}-${i}`; + return ( +
+ {t.panelContent} +
+ ); + })}
);