From 4c638ec933837128103d575b7cf686e9d58036b5 Mon Sep 17 00:00:00 2001 From: Paul Gschwendtner Date: Thu, 12 Jan 2017 22:26:25 +0100 Subject: [PATCH] docs(dialog): explain how to disable auto-focus for elements (#2596) * docs(dialog): explain how to disable auto-focus for elements * Explains that the dialog auto-focuses elements, which are tabbable for the user * Also adds a small example for disabling the auto-focus on specific elements Closes #2533 * Address comment --- src/lib/dialog/OVERVIEW.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/lib/dialog/OVERVIEW.md b/src/lib/dialog/OVERVIEW.md index 51da23d6a40..ca24c862cda 100644 --- a/src/lib/dialog/OVERVIEW.md +++ b/src/lib/dialog/OVERVIEW.md @@ -14,7 +14,8 @@ let dialogRef = dialog.open(UserProfileComponent, { ``` The `MdDialogRef` provides a handle on the opened dialog. It can be used to close the dialog and to -recieve notification when the dialog has been closed. +receive notification when the dialog has been closed. + ```ts dialogRef.afterClosed.then(result => { console.log(`Dialog result: ${result}`); // Pizza! @@ -37,3 +38,11 @@ Several directives are available to make it easier to structure your dialog cont | `` | Primary scrollable content of the dialog | | `` | Container for action buttons at the bottom of the dialog | | `md-dialog-close` | \[Attr] Added to a ` +```