stable

Clone or download

Read-only

Make possible to remove the collapse button of the project sidebar component

The button can be removed using the `no-collapse-button` on the HTML element. When the button is removed the sidebar state is only managed by the presence (or absence) of the `collapsed` attribute. The easiest way to test the change is to go in one of the sidebar package root and to start a dev server with `pnpm run dev` and to play with the element. Part of request #23465 Publish a project sidebar custom element Change-Id: Ia1ce684a6256f0d12db8d821cc2856804142c4e1

Modified Files

Name
M src/scripts/lib/project-sidebar-internal/src/ProjectSidebar.vue +11 −2 Go to diff View file
M src/scripts/lib/project-sidebar-internal/src/SidebarCollapseButton.test.ts +19 −1 Go to diff View file
M src/scripts/lib/project-sidebar-internal/src/SidebarCollapseButton.vue +2 −2 Go to diff View file
M src/scripts/lib/project-sidebar-internal/src/__snapshots__/ProjectSidebar.test.ts.snap +1 −0 Go to diff View file
M src/scripts/lib/project-sidebar/CHANGELOG.md +4 −0 Go to diff View file
M src/scripts/lib/project-sidebar/README.md +5 −0 Go to diff View file
M src/scripts/lib/project-sidebar/package.json +1 −1 Go to diff View file