Skip to content

Commit

Permalink
fix: revert changes, remove bootstrap dep
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiashader committed Dec 18, 2024
1 parent 6b68edc commit 26dcf15
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 4 additions & 1 deletion packages/core/src/components/drawer/drawer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@
.content {
position: relative;
flex: 1;
flex-grow: 1;
order: 2;
height: 100%;
width: 100%;
Expand All @@ -68,3 +67,7 @@
:host(.toggle) {
visibility: visible;
}

:host(.display-none) {
display: none;
}
6 changes: 4 additions & 2 deletions packages/core/src/components/drawer/drawer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export class Drawer {
opacity: [1, 0],
easing: 'easeInSine',
complete: () => {
el.classList.remove('toggle');
el.classList.add('display-none');
},
});
}
Expand All @@ -145,7 +145,7 @@ export class Drawer {
opacity: [0, 1],
easing: 'easeOutSine',
begin: () => {
el.classList.add('toggle');
el.classList.remove('display-none');
},
});
}
Expand All @@ -160,6 +160,8 @@ export class Drawer {
<Host
class={{
'drawer-container': true,
toggle: this.show,
'display-none': true,
}}
style={{
width: this.width === 'auto' ? this.width : `${this.width}rem`,
Expand Down

0 comments on commit 26dcf15

Please sign in to comment.