Skip to content

Commit 77cb2f3

Browse files
committed
main - cfa97bb fix(cdk/dialog): avoid setting aria-hidden before focus has moved (#31030)
1 parent e66a5a9 commit 77cb2f3

File tree

2 files changed

+28
-13
lines changed

2 files changed

+28
-13
lines changed

docs-content/api-docs/cdk-dialog.html

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -889,7 +889,7 @@ <h4 id="DialogRef" class="docs-header-link docs-api-h4 docs-api-class-name">
889889

890890
<tr class="docs-api-properties-row">
891891
<td class="docs-api-properties-name-cell"><p class="docs-api-property-name">
892-
<code>config: DialogConfig&lt;any, DialogRef&lt;R, C&gt;, BasePortalOutlet&gt;</code>
892+
<code>config: DialogConfig&lt;any, DialogRef&lt;R, C&gt;, DialogContainer&gt;</code>
893893
</p>
894894
</td>
895895
<td class="docs-api-property-description"></td>
@@ -901,10 +901,7 @@ <h4 id="DialogRef" class="docs-header-link docs-api-h4 docs-api-class-name">
901901

902902
<tr class="docs-api-properties-row">
903903
<td class="docs-api-properties-name-cell"><p class="docs-api-property-name">
904-
<code>containerInstance: BasePortalOutlet &amp; {
905-
_closeInteractionType?: FocusOrigin;
906-
_recaptureFocus?: () =&gt; void;
907-
}</code>
904+
<code>containerInstance: DialogContainer</code>
908905
</p>
909906
</td>
910907
<td class="docs-api-property-description"><p>Instance of the container that is rendering out the dialog content.</p>
@@ -1315,6 +1312,24 @@ <h4 id="DialogRole" class="docs-header-link docs-api-h4 docs-api-type-alias-name
13151312
</div>
13161313

13171314

1315+
1316+
1317+
1318+
<h4 id="DialogContainer" class="docs-header-link docs-api-h4 docs-api-type-alias-name">
1319+
<span header-link="DialogContainer"></span>
1320+
<code>DialogContainer</code>
1321+
</h4><p class="docs-api-type-alias-description"><p>Component that can be used as the container for the dialog.</p>
1322+
</p><div class="docs-markdown">
1323+
<pre class="docs-markdown-pre">
1324+
<code class="docs-markdown-code"><span class="hljs-keyword">type</span> DialogContainer = BasePortalOutlet &amp; {
1325+
_focusTrapped?: Observable&lt;<span class="hljs-built_in">void</span>&gt;;
1326+
_closeInteractionType?: FocusOrigin;
1327+
_recaptureFocus?: <span class="hljs-function">() =&gt;</span> <span class="hljs-built_in">void</span>;
1328+
};</code>
1329+
</pre>
1330+
</div>
1331+
1332+
13181333
<h3 id="cdk-dialog-constants" class="docs-header-link docs-api-h3">
13191334
<span header-link="constants"></span>
13201335
Constants

package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@angular/components-examples",
3-
"version": "20.1.0-next.0+sha-9f249d0",
3+
"version": "20.1.0-next.0+sha-cfa97bb",
44
"description": "Angular Components Examples",
55
"private": true,
66
"repository": {
@@ -259,15 +259,15 @@
259259
},
260260
"homepage": "https://github.com/angular/components#readme",
261261
"peerDependencies": {
262-
"@angular/cdk": "20.1.0-next.0+sha-9f249d0",
263-
"@angular/cdk-experimental": "20.1.0-next.0+sha-9f249d0",
262+
"@angular/cdk": "20.1.0-next.0+sha-cfa97bb",
263+
"@angular/cdk-experimental": "20.1.0-next.0+sha-cfa97bb",
264264
"@angular/core": "^20.0.0-0 || ^20.1.0-0 || ^20.2.0-0 || ^20.3.0-0 || ^21.0.0-0",
265265
"@angular/common": "^20.0.0-0 || ^20.1.0-0 || ^20.2.0-0 || ^20.3.0-0 || ^21.0.0-0",
266-
"@angular/material": "20.1.0-next.0+sha-9f249d0",
267-
"@angular/material-experimental": "20.1.0-next.0+sha-9f249d0",
268-
"@angular/material-moment-adapter": "20.1.0-next.0+sha-9f249d0",
269-
"@angular/material-luxon-adapter": "20.1.0-next.0+sha-9f249d0",
270-
"@angular/material-date-fns-adapter": "20.1.0-next.0+sha-9f249d0"
266+
"@angular/material": "20.1.0-next.0+sha-cfa97bb",
267+
"@angular/material-experimental": "20.1.0-next.0+sha-cfa97bb",
268+
"@angular/material-moment-adapter": "20.1.0-next.0+sha-cfa97bb",
269+
"@angular/material-luxon-adapter": "20.1.0-next.0+sha-cfa97bb",
270+
"@angular/material-date-fns-adapter": "20.1.0-next.0+sha-cfa97bb"
271271
},
272272
"devDependencies": {
273273
"@angular/cdk": "workspace:*",

0 commit comments

Comments
 (0)