Skip to content

Commit

Permalink
* sidebar: add helper class on collapsed.
Browse files Browse the repository at this point in the history
  • Loading branch information
catouse committed Mar 26, 2024
1 parent 3da21c4 commit f47403c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sidebar/src/vanilla/sidebar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ export class Sidebar extends Component<SidebarOptions, {
render() {
const {side, width} = this;
const isCollapsed = !width;
this.$element.toggleClass('is-collapsed', isCollapsed);
this.$element.toggleClass('is-collapsed', isCollapsed).toggleClass('is-expanded', !isCollapsed);
$(this._parent)
.css(`--sidebar-${side}-width`, `${width}px`)
.toggleClass('is-sidebar-left-collapsed', isCollapsed);
Expand Down

0 comments on commit f47403c

Please sign in to comment.