@salesforcedevs/docs-components 1.3.9-h2-toc-fix → 1.3.9-h2-toc-fix-3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -245,7 +245,8 @@ export default class ContentLayout extends LightningElement {
|
|
|
245
245
|
|
|
246
246
|
// Update tocOptions from anchorTags only for H2
|
|
247
247
|
const isH2 =
|
|
248
|
-
headingElement?.
|
|
248
|
+
headingElement.attributes["aria-level"]?.nodeValue === "2";
|
|
249
|
+
|
|
249
250
|
if (isH2) {
|
|
250
251
|
const tocItem = {
|
|
251
252
|
anchor: `#${headingElement.hash}`,
|