-
Notifications
You must be signed in to change notification settings - Fork 6.8k
demo(list): Add accessibility demo page for list #7020
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
Conversation
src/lib/list/list.ts
Outdated
@Directive({ | ||
selector: 'md-nav-list, mat-nav-list', | ||
host: {'class': 'mat-nav-list'} | ||
template: '<ng-content></ng-content>', |
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.
I think that in general we still keep the templates in a separate HTML file, even if it's a one-liner.
<h2> Seasoning </h2> | ||
<p>Showing a non-interactive list of seasonings.</p> | ||
<md-list role="list"> | ||
<md-list-item *ngFor="let item of items"> {{item}} </md-list-item> |
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.
Shouldn't all of these list items have a role="listitem"
?
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.
role="listitem"
is added in list.ts
so we don't need to add it here.
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.
Weren't we going to remove that from the list-item?
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.
LGTM
89e44b2
to
b2329cf
Compare
@tinayuangao Rebase? |
* demo(list): Add accessibility demo page for list * fix test * set default role for md-list * fix test * Add template file for list
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
PR #6363 is accidentally changed to change of changelog.md