docs(sidepanel): modal mode with close disabled (#DS-2313) - #1857
docs(sidepanel): modal mode with close disabled (#DS-2313)#1857NikGurev wants to merge 1 commit into
Conversation
|
Visit the preview URL for this PR (updated for commit 1dce53f): https://koobiq-next--prs-1857-13ihepvb.web.app (expires Mon, 10 Aug 2026 12:31:12 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: c9e37e518febda70d0317d07e8ceb35ac43c534c |
There was a problem hiding this comment.
Pull request overview
This PR adds documentation for the sidepanel's modal mode with close disabled. It introduces a new docs example (sidepanel-disable-close) demonstrating the disableClose config option, which prevents closing via backdrop click or Escape while still allowing explicit close actions. It fits into the existing sidepanel documentation set alongside other examples like normal-mode, overlayed, and custom-injector.
Changes:
- New docs example component (
SidepanelDisableCloseExample+ExampleSidepanelDisableCloseContent) opening a modal sidepanel withdisableClose: true. - Registered the example in
index.ts, the generatedexample-module.ts, and the dev app module. - Added English/Russian documentation sections describing
disableClose, plus a note about updating it dynamically viaKbqSidepanelRef.config.
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| packages/docs-examples/components/sidepanel/sidepanel-disable-close/sidepanel-disable-close-example.ts | New example demonstrating disableClose: true with a modal sidepanel. |
| packages/docs-examples/components/sidepanel/index.ts | Exports and registers the new example. |
| packages/docs-examples/example-module.ts | Generated registry entry and lazy-import case for the new example. |
| packages/components-dev/sidepanel/module.ts | Adds the example to the dev app imports and template. |
| packages/components/sidepanel/sidepanel.en.md / sidepanel.ru.md | New documentation subsection for disabling close. |
| packages/components/sidepanel/examples.sidepanel.en.md / examples.sidepanel.ru.md | Notes that disableClose/hasBackdrop can be updated dynamically. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
No description provided.