Skip to content

Commit 105c575

Browse files
committed
add checkbox name
1 parent 6082aba commit 105c575

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ export class MgtTodo extends MgtTasksBase {
206206
? html`
207207
<fluent-checkbox
208208
class="task-add-icon"
209+
aria-label="${this.strings.newTaskPlaceholder}"
209210
@click="${this.addTask}">
210211
</fluent-checkbox>
211212
`
@@ -393,6 +394,7 @@ export class MgtTodo extends MgtTasksBase {
393394
id=${task.id}
394395
class=${checkboxClasses}
395396
?checked=${isCompleted}
397+
aria-label=${this.strings.taskNameCheckboxLabel}
396398
@click="${() => this.handleTaskCheckClick(task)}"
397399
@keydown="${(e: KeyboardEvent) => this.handleTaskCheckKeydown(e, task)}"
398400
>

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,6 @@ export const strings = {
2424
newTaskDateInputLabel: 'New Task Date Input',
2525
changeTaskDateInputLabel: 'Change Task Date Input',
2626
newTaskNameInputLabel: 'New Task Name Input',
27-
cancelAddingTask: 'Cancel adding a new task'
27+
cancelAddingTask: 'Cancel adding a new task',
28+
taskNameCheckboxLabel: 'Task Name Checkbox'
2829
};

0 commit comments

Comments
 (0)