File tree 1 file changed +16
-0
lines changed
1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -68,6 +68,22 @@ This directive is declared in `A11yModule`.
68
68
This directive will not prevent focus from moving out of the trapped region due to mouse
69
69
interaction.
70
70
71
+ #### Regions
72
+ Regions can be declared explicitly with an initial focus element by using
73
+ the ` cdkFocusRegionStart ` , ` cdkFocusRegionEnd ` and ` cdkFocusInitial ` DOM attributes.
74
+ ` cdkFocusInitial ` specifies the element that will receive focus upon initialization of the region.
75
+ ` cdkFocusRegionStart ` and ` cdkFocusRegionEnd ` define the region within which focus will be
76
+ trapped. When using the tab key, focus will move through this region and wrap around on either end.
77
+
78
+ For example:
79
+
80
+ ``` html
81
+ <a mat-list-item routerLink cdkFocusRegionStart >Focus region start</a >
82
+ <a mat-list-item routerLink >Link</a >
83
+ <a mat-list-item routerLink cdkFocusInitial >Initially focused</a >
84
+ <a mat-list-item routerLink cdkFocusRegionEnd >Focus region end</a >
85
+ ```
86
+
71
87
72
88
### InteractivityChecker
73
89
` InteractivityChecker ` is used to check the interactivity of an element, capturing disabled,
You can’t perform that action at this time.
0 commit comments