diff --git a/config/styleguide.config.js b/config/styleguide.config.js index f6cd3e0244..73f3009ab3 100644 --- a/config/styleguide.config.js +++ b/config/styleguide.config.js @@ -38,7 +38,17 @@ module.exports = { name = 'Text' } - return `import { ${name} } from '@telusdigital/tds';` + // DisplayHeading has name-spaced sub-components + if (path.dirname(componentPath).includes('Typography/DisplayHeading')) { + name = 'DisplayHeading' + } + + // Heading has name-spaced sub-components + if (path.dirname(componentPath).includes('Typography/Heading')) { + name = 'Heading' + } + + return `import { ${name} } from '@telusdigital/tds'` }, showUsage: true,