Skip to content

Commit

Permalink
fix(split-button): test a11y correctly, find issues, fix them
Browse files Browse the repository at this point in the history
  • Loading branch information
Westbrook committed Sep 3, 2020
1 parent 00aa940 commit 4283994
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions packages/split-button/src/SplitButton.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ export class SplitButton extends DropdownBase {
@click=${this.onButtonClick}
@focus=${this.onButtonFocus}
?disabled=${this.disabled}
aria-label="More"
>
<sp-icon
class="icon ${this.type === 'field'
Expand Down
8 changes: 4 additions & 4 deletions packages/split-button/test/split-button.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ describe('Splitbutton', () => {
await elementUpdated(el1);
await elementUpdated(el2);

expect(el1).to.be.accessible();
expect(el2).to.be.accessible();
await expect(el1).to.be.accessible();
await expect(el2).to.be.accessible();
});
it('loads [type="more"] splitbutton accessibly', async () => {
const test = await fixture<HTMLDivElement>(moreCta());
Expand All @@ -44,8 +44,8 @@ describe('Splitbutton', () => {
await elementUpdated(el1);
await elementUpdated(el2);

expect(el1).to.be.accessible();
expect(el2).to.be.accessible();
await expect(el1).to.be.accessible();
await expect(el2).to.be.accessible();
});
it('manages tab interactions', async () => {
const test = await fixture<HTMLDivElement>(moreCta());
Expand Down

0 comments on commit 4283994

Please # to comment.