diff --git a/packages/ibm-products-web-components/src/components/side-panel/side-panel.ts b/packages/ibm-products-web-components/src/components/side-panel/side-panel.ts index 112097501f..51292c4b35 100644 --- a/packages/ibm-products-web-components/src/components/side-panel/side-panel.ts +++ b/packages/ibm-products-web-components/src/components/side-panel/side-panel.ts @@ -337,10 +337,11 @@ class CDSSidePanel extends HostListenerMixin(LitElement) { newValues.marginInlineEnd = `${this?._sidePanel?.offsetWidth}px`; } } - - Object.keys(newValues).forEach((key) => { - pageContentEl.style[key] = newValues[key]; - }); + if (this.slideIn) { + Object.keys(newValues).forEach((key) => { + pageContentEl.style[key] = newValues[key]; + }); + } } } }; @@ -680,7 +681,6 @@ class CDSSidePanel extends HostListenerMixin(LitElement) { const actionsMultiple = ['', 'single', 'double', 'triple'][ this._actionsCount ]; - const titleTemplate = html`