-
Notifications
You must be signed in to change notification settings - Fork 135
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
Accessibility and styling updates for MultiDropDownComponent #2093
Conversation
@andimarc, |
} | ||
// host: { | ||
// '(document:mousedown)': 'onDocumentMouseDown($event)', | ||
// } |
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.
remove? #Resolved
public selectedValues = new ReplaySubject<T[]>(1); | ||
public hasFocus = false; | ||
|
||
private focusedIndex = -1; |
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.
private focusedIndex = -1; [](start = 1, length = 27)
needs to be public #Resolved
<div | ||
role="combobox" | ||
[class.focused]="hasFocus && focusedIndex === -1" | ||
[attr.aria-label]="ariaLabel" |
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.
"ariaLabel" [](start = 22, length = 11)
variable does not exist #Resolved
// else if (this.opened) { | ||
// this._notifyChangeSubscriptions(); | ||
// } | ||
// } |
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.
remove? #Resolved
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.
🕐
this.options.forEach(o => o.isSelected = false); | ||
} | ||
} | ||
else { |
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.
nit: same line #Resolved
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.
6eba3cd
to
7671f5c
Compare
(Fixes #1738)
I closed the related PR (Accessibility updates for MultiDropDownComponent #1751) because I decided to use aria-activedescendant to handle moving the "focus".
Updates:
Below are the old vs. updated styles (both Light and Dark theme) for the following scenarios: