docs: add dialog keyboard shortcuts and selective printing tips - #6236
Conversation
- Add Dialogs & Popovers guide: Escape closes, Enter submits via a click shortcut scoped to the dialog - Browser access: print only part of the page with a print media query Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
They're now proposed in #6236. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Preview DeploymentThis PR has been deployed for preview. URL: https://docs-preview-pr-6236.fly.dev Changed pagesAdded content is highlighted in green; removed content is marked in red on each page.
Built from 30398ca |
|
@totally-not-ai Move the dialog keyboard shortcuts example into a "Recipes" sub-page, following the one that TreeGrid already has. |
Follow the Tree Grid recipes page and keep the guide unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
@sissbruecker Done. The keyboard shortcuts example is now on a new Dialog Recipes sub-page ( |
|
Hi @totally-not-ai[bot] and @sissbruecker, when i performed cherry-pick to this commit to v25.3, i have encountered the following issue. Can you take a look and pick it manually? |
Summary
This PR adds two docs tips. A new Dialog recipes page shows how to use keyboard shortcuts in a dialog. The Browser Access page now shows how to print only part of the page.
What changed
This is a docs-only change. It does not change any code or how anything behaves.
articles/components/dialog/recipes.adoc(Flow):setCloseOnEsc(false).addClickShortcut(Key.ENTER).listenOn(dialog).allowBrowserDefault()keeps the button's normal Enter behavior.articles/flow/advanced/browser-access.adoc: adds a CSS@media printexample. It hides the whole page except the element with theprintableclass, so only that part is printed.