Skip to content

Commit 6ca9566

Browse files
Copilotgavinbarron
andcommitted
Add aria-label attributes to fluent-select elements in mgt-planner for accessibility
Co-authored-by: gavinbarron <[email protected]>
1 parent 7479010 commit 6ca9566

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -824,7 +824,7 @@ export class MgtPlanner extends MgtTemplatedTaskComponent {
824824
<span>${this.getPlanTitle(this._currentGroup)}</span>
825825
</span>`
826826
: html`
827-
<fluent-select>
827+
<fluent-select aria-label="${this.strings.selectPlan}">
828828
<span slot="start">${this.renderPlannerIcon(iconColor)}</span>
829829
${this._groups.length > 0 ? groupOptions : html`<fluent-option selected>No groups found</fluent-option>`}
830830
</fluent-select>`;
@@ -853,7 +853,7 @@ export class MgtPlanner extends MgtTemplatedTaskComponent {
853853
</span>
854854
`
855855
: html`
856-
<fluent-select>
856+
<fluent-select aria-label="${this.strings.selectBucket}">
857857
<span slot="start">${this.renderBucketIcon(iconColor)}</span>
858858
${folders.length > 0 ? folderOptions : html`<fluent-option selected>No folders found</fluent-option>`}
859859
</fluent-select>`;

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,7 @@ export const strings = {
1717
plansSelfAssigned: 'All Plans',
1818
bucketNotFound: 'Bucket not found',
1919
bucketsSelfAssigned: 'All Tasks',
20-
baseSelfAssigned: 'Assigned to Me'
20+
baseSelfAssigned: 'Assigned to Me',
21+
selectPlan: 'Select plan',
22+
selectBucket: 'Select bucket'
2123
};

0 commit comments

Comments
 (0)