From 6178d36a7dcafe891491c55403d656344064b6d8 Mon Sep 17 00:00:00 2001 From: Shuaib Hasan Akib Date: Sat, 13 Sep 2025 12:34:32 +0600 Subject: [PATCH] docs(docs-infra): add missing type="button" for accessibility and to remove dev tools warning (#63784) PR Close #63784 --- .../cookie-popup/cookie-popup.component.html | 2 +- adev/src/app/app.component.html | 2 +- .../code-editor/code-editor.component.html | 9 +++++++- .../home-animation.component.html | 7 ++++++- .../playground/playground.component.html | 2 +- .../features/tutorial/tutorial.component.html | 21 ++++++++++++------- .../app/features/update/update.component.html | 4 ++-- .../animations/src/app/querying.component.ts | 2 +- .../free-drag-position/app/app.component.html | 2 +- .../src/root-element/app/app.component.html | 2 +- .../playground/3-minigame/src/game.html | 17 ++++++++++++--- 11 files changed, 49 insertions(+), 21 deletions(-) diff --git a/adev/shared-docs/components/cookie-popup/cookie-popup.component.html b/adev/shared-docs/components/cookie-popup/cookie-popup.component.html index 808d146175b..becf5b6b422 100644 --- a/adev/shared-docs/components/cookie-popup/cookie-popup.component.html +++ b/adev/shared-docs/components/cookie-popup/cookie-popup.component.html @@ -4,7 +4,7 @@
- diff --git a/adev/src/app/app.component.html b/adev/src/app/app.component.html index e589f359128..0c8ea9b6dc9 100644 --- a/adev/src/app/app.component.html +++ b/adev/src/app/app.component.html @@ -1,4 +1,4 @@ - + @defer (when isBrowser) { diff --git a/adev/src/app/editor/code-editor/code-editor.component.html b/adev/src/app/editor/code-editor/code-editor.component.html index a8efb16dd83..eefe9af9860 100644 --- a/adev/src/app/editor/code-editor/code-editor.component.html +++ b/adev/src/app/editor/code-editor/code-editor.component.html @@ -30,6 +30,7 @@ @if (tab.isActive && canRenameFile(file.filename)) {
diff --git a/adev/src/app/features/home/components/home-animation/home-animation.component.html b/adev/src/app/features/home/components/home-animation/home-animation.component.html index 01a4806d1d5..4437c60dd86 100644 --- a/adev/src/app/features/home/components/home-animation/home-animation.component.html +++ b/adev/src/app/features/home/components/home-animation/home-animation.component.html @@ -13,7 +13,12 @@
- diff --git a/adev/src/app/features/playground/playground.component.html b/adev/src/app/features/playground/playground.component.html index 32f53317299..353349be8cb 100644 --- a/adev/src/app/features/playground/playground.component.html +++ b/adev/src/app/features/playground/playground.component.html @@ -4,7 +4,7 @@
- diff --git a/adev/src/app/features/tutorial/tutorial.component.html b/adev/src/app/features/tutorial/tutorial.component.html index 35d271651d3..e6d9147023b 100644 --- a/adev/src/app/features/tutorial/tutorial.component.html +++ b/adev/src/app/features/tutorial/tutorial.component.html @@ -7,15 +7,18 @@ @if (documentContent(); as documentContent) { -
+ class="docs-viewer docs-viewer-scroll-margin-large" + > }
} @@ -74,26 +78,26 @@
@if (previousStepPath) { - } @if (!previousStepPath) { - } @if (nextStepPath) { - } @if (!nextStepPath) { - } @@ -103,6 +107,7 @@
@if (shouldRenderRevealAnswer()) { @@ -31,7 +31,7 @@ To v. - diff --git a/adev/src/content/examples/animations/src/app/querying.component.ts b/adev/src/content/examples/animations/src/app/querying.component.ts index 76783cf0b67..cc52b01eb07 100755 --- a/adev/src/content/examples/animations/src/app/querying.component.ts +++ b/adev/src/content/examples/animations/src/app/querying.component.ts @@ -16,7 +16,7 @@ import {HEROES} from './mock-heroes'; selector: 'app-querying', template: ` @if (show) {
diff --git a/adev/src/content/examples/drag-drop/src/free-drag-position/app/app.component.html b/adev/src/content/examples/drag-drop/src/free-drag-position/app/app.component.html index c51e3e5ce7a..2a2c74c8576 100755 --- a/adev/src/content/examples/drag-drop/src/free-drag-position/app/app.component.html +++ b/adev/src/content/examples/drag-drop/src/free-drag-position/app/app.component.html @@ -1,5 +1,5 @@

- +

diff --git a/adev/src/content/examples/drag-drop/src/root-element/app/app.component.html b/adev/src/content/examples/drag-drop/src/root-element/app/app.component.html index 3ae7f503ad4..65c520a7342 100755 --- a/adev/src/content/examples/drag-drop/src/root-element/app/app.component.html +++ b/adev/src/content/examples/drag-drop/src/root-element/app/app.component.html @@ -1,4 +1,4 @@ - +
diff --git a/adev/src/content/tutorials/playground/3-minigame/src/game.html b/adev/src/content/tutorials/playground/3-minigame/src/game.html index 6a78e0a891b..671f904ff9d 100644 --- a/adev/src/content/tutorials/playground/3-minigame/src/game.html +++ b/adev/src/content/tutorials/playground/3-minigame/src/game.html @@ -130,14 +130,20 @@ accuracy: {{ totalAccuracyPercentage() > 0 ? (totalAccuracyPercentage() | number : '1.1-1') + '%' : '??' }} -
@if(isGuessModalOpen()) { - +

goal: {{ goal() }}º

actual: {{ rotateVal() | number : '1.1-1' }}º

@@ -202,7 +208,9 @@
"{{ resultQuote() }}"
- +