@salesforcedevs/docs-components 1.19.2-specfix-alpha → 1.19.3-latest-alpha
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 +1 -1
- package/src/modules/doc/lwcContentLayout/lwcContentLayout.css +8 -0
- package/src/modules/doc/lwcContentLayout/lwcContentLayout.html +2 -2
- package/src/modules/doc/lwcContentLayout/lwcContentLayout.ts +13 -0
- package/src/modules/docHelpers/contentLayoutStyle/contentLayoutStyle.css +1 -1
package/package.json
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
<slot name="doc-phase"></slot>
|
|
20
20
|
<slot name="version-banner"></slot>
|
|
21
21
|
<div class="content-body-container">
|
|
22
|
-
<div class=
|
|
22
|
+
<div class={contentBodyClasses}>
|
|
23
23
|
<doc-breadcrumbs
|
|
24
24
|
lwc:if={showBreadcrumbs}
|
|
25
25
|
breadcrumbs={breadcrumbs}
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
lwc:if={shouldDisplayFeedback}
|
|
30
30
|
></doc-sprig-survey>
|
|
31
31
|
</div>
|
|
32
|
-
<div lwc:if={showToc} class=
|
|
32
|
+
<div lwc:if={showToc} class={rightNavBarClasses}>
|
|
33
33
|
<dx-toc
|
|
34
34
|
header={tocTitle}
|
|
35
35
|
options={tocOptions}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import ContentLayout from "doc/contentLayout";
|
|
2
|
+
import cx from "classnames";
|
|
2
3
|
|
|
3
4
|
const TOC_HEADER_TAG = "doc-heading";
|
|
4
5
|
const RNB_BY_TAB = "docs-tab";
|
|
@@ -23,6 +24,18 @@ export default class LwcContentLayout extends ContentLayout {
|
|
|
23
24
|
return this.rnbByTab;
|
|
24
25
|
}
|
|
25
26
|
|
|
27
|
+
get rightNavBarClasses() {
|
|
28
|
+
return cx(
|
|
29
|
+
"right-nav-bar",
|
|
30
|
+
"is-sticky",
|
|
31
|
+
this.showTabBasedRNB && "fixed-right-nav-bar"
|
|
32
|
+
);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
get contentBodyClasses() {
|
|
36
|
+
return cx("content-body", !this.showToc && "content-body-no-rnb");
|
|
37
|
+
}
|
|
38
|
+
|
|
26
39
|
/**
|
|
27
40
|
* Check if the main slot contains doc-specification-content
|
|
28
41
|
* Uses caching to avoid repeated DOM queries
|