Skip to content

Commit 77b45f5

Browse files
crisbetojelbourn
authored andcommitted
docs(dialog): add note about setting initial focus (#9110)
Adds a note to the dialog docs about setting the initial focus. Relates to #9107.
1 parent e18292c commit 77b45f5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lib/dialog/dialog.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,8 @@ within itself. Once a dialog is closed, it will return focus to the element that
142142
before the dialog was opened.
143143

144144
#### Focus management
145-
By default, the first tabbable element within the dialog will receive focus upon open.
145+
By default, the first tabbable element within the dialog will receive focus upon open. This can
146+
be configured by setting the `cdkFocusInitial` attribute on another focusable element.
146147

147148
Tabbing through the elements of the dialog will keep focus inside of the dialog element,
148149
wrapping back to the first tabbable element when reaching the end of the tab sequence.

0 commit comments

Comments
 (0)