Skip to content

Commit 63ee788

Browse files
committed
main - 75713b0 fix(material/paginator): prevent keyboard nav to disabled buttons (#30627)
1 parent 838c728 commit 63ee788

File tree

2 files changed

+20
-12
lines changed

2 files changed

+20
-12
lines changed

docs-content/api-docs/material-button.html

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,9 @@ <h4 id="MatButton" class="docs-header-link docs-api-h4 docs-api-class-name">
154154
</td>
155155
<td class="docs-api-property-description"><p>Natively disabled buttons prevent focus and any pointer events from reaching the button.
156156
In some scenarios this might not be desirable, because it can prevent users from finding out
157-
why the button is disabled (e.g. via tooltip).</p>
157+
why the button is disabled (e.g. via tooltip). This is also useful for buttons that may
158+
become disabled when activated, which would cause focus to be transferred to the document
159+
body instead of remaining on the button.</p>
158160
<p>Enabling this input will change the button so that it is styled to be disabled and will be
159161
marked as <code>aria-disabled</code>, but it will allow the button to receive events and focus.</p>
160162
<p>Note that by enabling this, you need to set the <code>tabindex</code> yourself if the button isn&#39;t
@@ -354,7 +356,9 @@ <h4 id="MatFabButton" class="docs-header-link docs-api-h4 docs-api-class-name">
354356
</td>
355357
<td class="docs-api-property-description"><p>Natively disabled buttons prevent focus and any pointer events from reaching the button.
356358
In some scenarios this might not be desirable, because it can prevent users from finding out
357-
why the button is disabled (e.g. via tooltip).</p>
359+
why the button is disabled (e.g. via tooltip). This is also useful for buttons that may
360+
become disabled when activated, which would cause focus to be transferred to the document
361+
body instead of remaining on the button.</p>
358362
<p>Enabling this input will change the button so that it is styled to be disabled and will be
359363
marked as <code>aria-disabled</code>, but it will allow the button to receive events and focus.</p>
360364
<p>Note that by enabling this, you need to set the <code>tabindex</code> yourself if the button isn&#39;t
@@ -531,7 +535,9 @@ <h4 id="MatMiniFabButton" class="docs-header-link docs-api-h4 docs-api-class-nam
531535
</td>
532536
<td class="docs-api-property-description"><p>Natively disabled buttons prevent focus and any pointer events from reaching the button.
533537
In some scenarios this might not be desirable, because it can prevent users from finding out
534-
why the button is disabled (e.g. via tooltip).</p>
538+
why the button is disabled (e.g. via tooltip). This is also useful for buttons that may
539+
become disabled when activated, which would cause focus to be transferred to the document
540+
body instead of remaining on the button.</p>
535541
<p>Enabling this input will change the button so that it is styled to be disabled and will be
536542
marked as <code>aria-disabled</code>, but it will allow the button to receive events and focus.</p>
537543
<p>Note that by enabling this, you need to set the <code>tabindex</code> yourself if the button isn&#39;t
@@ -695,7 +701,9 @@ <h4 id="MatIconButton" class="docs-header-link docs-api-h4 docs-api-class-name">
695701
</td>
696702
<td class="docs-api-property-description"><p>Natively disabled buttons prevent focus and any pointer events from reaching the button.
697703
In some scenarios this might not be desirable, because it can prevent users from finding out
698-
why the button is disabled (e.g. via tooltip).</p>
704+
why the button is disabled (e.g. via tooltip). This is also useful for buttons that may
705+
become disabled when activated, which would cause focus to be transferred to the document
706+
body instead of remaining on the button.</p>
699707
<p>Enabling this input will change the button so that it is styled to be disabled and will be
700708
marked as <code>aria-disabled</code>, but it will allow the button to receive events and focus.</p>
701709
<p>Note that by enabling this, you need to set the <code>tabindex</code> yourself if the button isn&#39;t

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.0.0-next.1+sha-103ac7c",
3+
"version": "20.0.0-next.1+sha-75713b0",
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.0.0-next.1+sha-103ac7c",
263-
"@angular/cdk-experimental": "20.0.0-next.1+sha-103ac7c",
262+
"@angular/cdk": "20.0.0-next.1+sha-75713b0",
263+
"@angular/cdk-experimental": "20.0.0-next.1+sha-75713b0",
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.0.0-next.1+sha-103ac7c",
267-
"@angular/material-experimental": "20.0.0-next.1+sha-103ac7c",
268-
"@angular/material-moment-adapter": "20.0.0-next.1+sha-103ac7c",
269-
"@angular/material-luxon-adapter": "20.0.0-next.1+sha-103ac7c",
270-
"@angular/material-date-fns-adapter": "20.0.0-next.1+sha-103ac7c"
266+
"@angular/material": "20.0.0-next.1+sha-75713b0",
267+
"@angular/material-experimental": "20.0.0-next.1+sha-75713b0",
268+
"@angular/material-moment-adapter": "20.0.0-next.1+sha-75713b0",
269+
"@angular/material-luxon-adapter": "20.0.0-next.1+sha-75713b0",
270+
"@angular/material-date-fns-adapter": "20.0.0-next.1+sha-75713b0"
271271
},
272272
"dependencies": {
273273
"tslib": "^2.3.0"

0 commit comments

Comments
 (0)