Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Conversation

@Splaktar
Copy link
Contributor

@Splaktar Splaktar commented Sep 26, 2019

PR Checklist

Please check that your PR fulfills the following requirements:

  • The commit message follows our guidelines
  • Tests for the changes have been added or this is not a bug fix / enhancement
  • Docs have been added, updated, or were not required

PR Type

What kind of change does this PR introduce?

[x] Bugfix
[ ] Enhancement
[ ] Documentation content changes
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Infrastructure changes
[ ] Other... Please describe:

What is the current behavior?

aria-labels are not applied to secondary actions if the md-list-item contains text in a span instead of a p.

Issue Number:
Fixes #6152

What is the new behavior?

  • an md-list-item's text should be in a <span> or <p>
    but currently the setupToggleAria() function only handles <p>
    this adds support for <span>
  • add JSDoc
  • fix typos in comments
  • add docs for localizing aria labels on secondary actions

Does this PR introduce a breaking change?

[ ] Yes
[x] No

Other information

@googlebot googlebot added the cla: yes PR author has signed Google's CLA: https://opensource.google.com/docs/cla/ label Sep 26, 2019
@Splaktar Splaktar added this to the 1.1.21 milestone Sep 26, 2019
@Splaktar Splaktar self-assigned this Sep 26, 2019
@Splaktar Splaktar added type: bug a11y This issue is related to accessibility P2: required Issues that must be fixed. pr: merge ready This PR is ready for a caretaker to review labels Sep 26, 2019
@Splaktar Splaktar force-pushed the list-ariaWarningSpan branch from 396c75b to 8c0256e Compare September 26, 2019 23:44
@Splaktar Splaktar modified the milestones: 1.1.21, 1.1.22 Oct 22, 2019
@Splaktar Splaktar requested a review from jelbourn March 4, 2020 19:23
Copy link
Member

@jelbourn jelbourn left a comment

Choose a reason for hiding this comment

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

LGTM

- an `md-list-item`'s text should be in a `<span>` or `<p>`
but currently the `setupToggleAria()` function only handles `<p>`
this adds support for `<span>`
- add JSDoc
- fix typos in comments
- add docs for localizing aria labels on secondary actions

Fixes #6152
@Splaktar Splaktar force-pushed the list-ariaWarningSpan branch from 8c0256e to b65e8e5 Compare March 5, 2020 23:58
@Splaktar Splaktar merged commit 90c8b8d into master Mar 6, 2020
@Splaktar Splaktar deleted the list-ariaWarningSpan branch March 6, 2020 00:09
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

a11y This issue is related to accessibility cla: yes PR author has signed Google's CLA: https://opensource.google.com/docs/cla/ P2: required Issues that must be fixed. pr: merge ready This PR is ready for a caretaker to review type: bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

list: checkbox secondary action gives aria-label warning

4 participants