Skip to content

Commit

Permalink
fix(sidePanel): revert the div id and class
Browse files Browse the repository at this point in the history
  • Loading branch information
makafsal committed Jan 21, 2025
1 parent 7918dca commit 376c1e7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -634,13 +634,15 @@ const SlideInTemplate = (

return (
<>
<Button
ref={buttonRef}
onClick={() => setOpen(!open)}
className={`${prefix}toggle`}
>
{open ? 'Close side panel' : 'Open side panel'}
</Button>
<div class={`${prefix}story-content`} id="ibm-products-page-content">
<Button
ref={buttonRef}
onClick={() => setOpen(!open)}
className={`${prefix}toggle`}
>
{open ? 'Close side panel' : 'Open side panel'}
</Button>
</div>
<SidePanel
{...args}
open={open}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,6 @@ export let SidePanel = React.forwardRef(
}
};
const bodyElement = document.body;

if (includeOverlay && open) {
bodyElement.style.overflow = 'hidden';
} else if (includeOverlay && !open) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,16 +59,6 @@ $story-prefix: side-panel-stories__;
height: 100%;
}

.#{$story-prefix}story-container {
position: fixed;
display: grid;
block-size: 100vh;
grid-template-rows: 3rem 1fr;
inline-size: 100vw;
inset-block-start: 0;
inset-inline-start: 0;
}

.#{$story-prefix}story-content {
position: relative;
display: flex;
Expand Down

0 comments on commit 376c1e7

Please sign in to comment.