Skip to content

Commit

Permalink
Remove checkboxgroup role
Browse files Browse the repository at this point in the history
  • Loading branch information
samiheikki committed Oct 7, 2018
1 parent ea6d0db commit cf61dbf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions src/vaadin-checkbox-group.html
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,6 @@
ready() {
super.ready();

this.setAttribute('role', 'checkboxgroup');

this.addEventListener('focusout', e => {
// validate when stepping out of the checkbox group
if (!this._checkboxes.some(checkbox => e.relatedTarget === checkbox || checkbox.shadowRoot.contains(e.relatedTarget))) {
Expand Down
4 changes: 2 additions & 2 deletions test/vaadin-checkbox-group_test.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@
vaadinCheckboxGroup._observer.flush();
});

it('sets role properly', () => {
expect(vaadinCheckboxGroup.getAttribute('role')).to.eq('checkboxgroup');
it('does not set a role', () => {
expect(vaadinCheckboxGroup.getAttribute('role')).to.eq(null);
});

it('changes aria-disabled on disabled change', () => {
Expand Down

0 comments on commit cf61dbf

Please sign in to comment.