Skip to content

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

Merged
merged 5 commits into from
Nov 29, 2017

Conversation

tinayuangao
Copy link
Contributor

PR #6363 is accidentally changed to change of changelog.md

@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Sep 12, 2017
@Directive({
selector: 'md-nav-list, mat-nav-list',
host: {'class': 'mat-nav-list'}
template: '<ng-content></ng-content>',
Copy link
Member

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>
Copy link
Member

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"?

Copy link
Contributor Author

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.

Copy link
Member

@jelbourn jelbourn Sep 13, 2017

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?

Copy link
Member

@crisbeto crisbeto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tinayuangao tinayuangao added action: merge The PR is ready for merge by the caretaker P1 Impacts a large percentage of users; if a workaround exists it is partial or overly painful Accessibility This issue is related to accessibility (a11y) and removed P1 Impacts a large percentage of users; if a workaround exists it is partial or overly painful labels Sep 12, 2017
@tinayuangao tinayuangao force-pushed the list branch 3 times, most recently from 89e44b2 to b2329cf Compare September 29, 2017 05:54
@kara kara added pr: needs rebase and removed action: merge The PR is ready for merge by the caretaker labels Oct 3, 2017
@kara
Copy link
Contributor

kara commented Oct 3, 2017

@tinayuangao Rebase?

@tinayuangao tinayuangao added the action: merge The PR is ready for merge by the caretaker label Oct 13, 2017
@tinayuangao tinayuangao merged commit b4ce5ec into angular:master Nov 29, 2017
tinayuangao added a commit to tinayuangao/material2 that referenced this pull request Nov 29, 2017
* demo(list): Add accessibility demo page for list

* fix test

* set default role for md-list

* fix test

* Add template file for list
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Accessibility This issue is related to accessibility (a11y) action: merge The PR is ready for merge by the caretaker cla: yes PR author has agreed to Google's Contributor License Agreement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants