Skip to content

Commit fe0abb7

Browse files
akib1997pkozlowski-opensource
authored andcommitted
docs(docs-infra): add tooltip for code editor buttons to improve accessibility (angular#61669)
PR Close angular#61669
1 parent c45afbc commit fe0abb7

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

adev/src/app/editor/code-editor/code-editor.component.html

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
(keydown)="$event.stopPropagation()"
2323
/>
2424
</form>
25-
} @else if(restrictedMode()) {
25+
} @else if (restrictedMode()) {
2626
{{ file.filename.replace('src/app/', '') }}
2727
} @else {
2828
{{ file.filename.replace('src/', '') }}
@@ -32,6 +32,8 @@
3232
<button
3333
class="docs-rename-file"
3434
aria-label="rename file"
35+
matTooltip="Rename file"
36+
matTooltipPosition="above"
3537
(click)="onRenameButtonClick()"
3638
>
3739
<docs-icon>edit</docs-icon>
@@ -41,6 +43,8 @@
4143
<button
4244
class="docs-delete-file"
4345
aria-label="Delete file"
46+
matTooltip="Delete file"
47+
matTooltipPosition="above"
4448
(click)="deleteFile(file.filename)"
4549
>
4650
<docs-icon>delete</docs-icon>
@@ -66,7 +70,13 @@
6670
</mat-tab-group>
6771

6872
@if (canCreateFile()) {
69-
<button class="adev-add-file" (click)="onAddButtonClick()" aria-label="Add a new file">
73+
<button
74+
class="adev-add-file"
75+
(click)="onAddButtonClick()"
76+
aria-label="Add a new file"
77+
matTooltip="Add a new file"
78+
matTooltipPosition="above"
79+
>
7080
<docs-icon>add</docs-icon>
7181
</button>
7282
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy