-
Notifications
You must be signed in to change notification settings - Fork 85
Improve tab navigation flow for accessibility #1359
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -13,6 +13,7 @@ | |||||
| <mat-form-field appearance="outline" style="width: 100%"> | ||||||
| <mat-label></mat-label> | ||||||
|
||||||
| <mat-label></mat-label> | |
| <mat-label>Enter your comment</mat-label> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,7 @@ | ||
| <form [formGroup]="dropdownForm"> | ||
| <mat-form-field style="width: 100%"> | ||
| <mat-select | ||
| tabindex="3" | ||
|
||
| [ngClass]="dropdownTextColor" | ||
| formControlName="{{ attributeName }}" | ||
| placeholder="{{ this.labelService.getLabelTitle(attributeName) }}" | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nitpick] Using positive tabindex values increases maintenance complexity and can conflict with natural tab order. It's generally better to reorder elements in the DOM to achieve the desired focus flow instead of hardcoding tabindex.