Skip to content
This repository has been archived by the owner on Dec 19, 2024. It is now read-only.

Commit

Permalink
Address comments from #80 (#81)
Browse files Browse the repository at this point in the history
* [skip ci] add button id

* should not have aria-expanded attribute
  • Loading branch information
valdrinkoshi authored Jan 26, 2018
1 parent 86b5076 commit 9129010
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ collapsable area, not on the area itself. See
https://www.w3.org/WAI/GL/wiki/Using_aria-expanded_to_indicate_the_state_of_a_collapsible_element#Description

```html
<button on-click="toggle">toggle collapse</button>
<button id="button" on-click="toggle">toggle collapse</button>

<iron-collapse id="collapse">
<div>Content goes here...</div>
Expand Down
2 changes: 1 addition & 1 deletion test/a11y.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
// aria-expanded should only be set on the button that
// controls the collapsable area, not on the area itself.
// See https://www.w3.org/WAI/GL/wiki/Using_aria-expanded_to_indicate_the_state_of_a_collapsible_element#Description
assert.isNotOk(collapse.getAttribute('aria-expanded'));
assert.isFalse(collapse.hasAttribute('aria-expanded'));
});

test('set opened to true', function() {
Expand Down

0 comments on commit 9129010

Please sign in to comment.