|
9 | 9 |
|
10 | 10 | <div id="@Id" class="markdown-editor-container @Class"> |
11 | 11 | <div class="markdown-toolbar"> |
12 | | - <button type="button" class="toolbar-btn" title="@GetShortcutText("Undo", "Z")" @onclick="Undo" disabled="@(!canUndo)"> |
| 12 | + <button type="button" class="toolbar-btn" title="@GetShortcutText("Undo", "Z")" aria-label="@GetShortcutText("Undo", "Z")" @onclick="Undo" disabled="@(!canUndo)"> |
13 | 13 | <i class="bi bi-arrow-counterclockwise"></i> |
14 | 14 | </button> |
15 | | - <button type="button" class="toolbar-btn" title="@GetShortcutText("Redo", "Y")" @onclick="Redo" disabled="@(!canRedo)"> |
| 15 | + <button type="button" class="toolbar-btn" title="@GetShortcutText("Redo", "Y")" aria-label="@GetShortcutText("Redo", "Y")" @onclick="Redo" disabled="@(!canRedo)"> |
16 | 16 | <i class="bi bi-arrow-clockwise"></i> |
17 | 17 | </button> |
18 | 18 | <div class="toolbar-divider"></div> |
19 | | - <button type="button" class="toolbar-btn" title="@GetShortcutText("Bold", "B")" @onclick="InsertBold"> |
| 19 | + <button type="button" class="toolbar-btn" title="@GetShortcutText("Bold", "B")" aria-label="@GetShortcutText("Bold", "B")" @onclick="InsertBold"> |
20 | 20 | <i class="bi bi-type-bold"></i> |
21 | 21 | </button> |
22 | | - <button type="button" class="toolbar-btn" title="@GetShortcutText("Italic", "I")" @onclick="InsertItalic"> |
| 22 | + <button type="button" class="toolbar-btn" title="@GetShortcutText("Italic", "I")" aria-label="@GetShortcutText("Italic", "I")" @onclick="InsertItalic"> |
23 | 23 | <i class="bi bi-type-italic"></i> |
24 | 24 | </button> |
25 | | - <button type="button" class="toolbar-btn" title="Heading 1" @onclick="InsertH1"> |
| 25 | + <button type="button" class="toolbar-btn" title="Heading 1" aria-label="Heading 1" @onclick="InsertH1"> |
26 | 26 | <i class="bi bi-type-h1"></i> |
27 | 27 | </button> |
28 | | - <button type="button" class="toolbar-btn" title="Heading 2" @onclick="InsertH2"> |
| 28 | + <button type="button" class="toolbar-btn" title="Heading 2" aria-label="Heading 2" @onclick="InsertH2"> |
29 | 29 | <i class="bi bi-type-h2"></i> |
30 | 30 | </button> |
31 | | - <button type="button" class="toolbar-btn" title="Heading 3" @onclick="InsertH3"> |
| 31 | + <button type="button" class="toolbar-btn" title="Heading 3" aria-label="Heading 3" @onclick="InsertH3"> |
32 | 32 | <i class="bi bi-type-h3"></i> |
33 | 33 | </button> |
34 | 34 | <div class="toolbar-divider"></div> |
35 | | - <button type="button" class="toolbar-btn" title="@GetShortcutText("Quote", "⇧.")" @onclick="InsertQuote"> |
| 35 | + <button type="button" class="toolbar-btn" title="@GetShortcutText("Quote", "⇧.")" aria-label="@GetShortcutText("Quote", "⇧.")" @onclick="InsertQuote"> |
36 | 36 | <i class="bi bi-quote"></i> |
37 | 37 | </button> |
38 | | - <button type="button" class="toolbar-btn" title="@GetShortcutText("Code", "E")" @onclick="InsertCode"> |
| 38 | + <button type="button" class="toolbar-btn" title="@GetShortcutText("Code", "E")" aria-label="@GetShortcutText("Code", "E")" @onclick="InsertCode"> |
39 | 39 | <i class="bi bi-code"></i> |
40 | 40 | </button> |
41 | | - <button type="button" class="toolbar-btn" title="Code Block" @onclick="InsertCodeBlock"> |
| 41 | + <button type="button" class="toolbar-btn" title="Code Block" aria-label="Code Block" @onclick="InsertCodeBlock"> |
42 | 42 | <i class="bi bi-code-square"></i> |
43 | 43 | </button> |
44 | | - <button type="button" class="toolbar-btn" title="@GetShortcutText("Horizontal Rule", "⇧H")" @onclick="InsertHorizontalRule"> |
| 44 | + <button type="button" class="toolbar-btn" title="@GetShortcutText("Horizontal Rule", "⇧H")" aria-label="@GetShortcutText("Horizontal Rule", "⇧H")" @onclick="InsertHorizontalRule"> |
45 | 45 | <i class="bi bi-hr"></i> |
46 | 46 | </button> |
47 | 47 | <div class="toolbar-divider"></div> |
|
0 commit comments