Skip to content

Commit ffaa0e7

Browse files
authored
fix: add aria-label text announce cancelling adding a new task (#2359)
Signed-off-by: Martin Musale <[email protected]>
1 parent 2d953fa commit ffaa0e7

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

packages/mgt-components/src/components/mgt-todo/mgt-todo.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,7 @@ export class MgtTodo extends MgtTasksBase {
209209

210210
const cancelIcon = html`
211211
<fluent-button
212+
aria-label=${this.strings.cancelAddingTask}
212213
class="task-cancel-icon"
213214
@click="${this.clearNewTaskData}">
214215
${getSvg(SvgIcon.Cancel)}

packages/mgt-components/src/components/mgt-todo/strings.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,6 @@ export const strings = {
2020
deleteTaskLabel: 'Delete Task',
2121
dueDate: 'Due date',
2222
newTaskDateInputLabel: 'New Task Date Input',
23-
newTaskNameInputLabel: 'New Task Name Input'
23+
newTaskNameInputLabel: 'New Task Name Input',
24+
cancelAddingTask: 'Cancel adding a new task'
2425
};

0 commit comments

Comments
 (0)