diff --git a/src/material-experimental/mdc-chips/chip-option.html b/src/material-experimental/mdc-chips/chip-option.html index f9d467066596..c407f8168e9e 100644 --- a/src/material-experimental/mdc-chips/chip-option.html +++ b/src/material-experimental/mdc-chips/chip-option.html @@ -8,7 +8,7 @@
- + diff --git a/src/material-experimental/mdc-chips/chip-option.spec.ts b/src/material-experimental/mdc-chips/chip-option.spec.ts index 436044605859..88bcbf7b8631 100644 --- a/src/material-experimental/mdc-chips/chip-option.spec.ts +++ b/src/material-experimental/mdc-chips/chip-option.spec.ts @@ -231,6 +231,16 @@ describe('MDC-based Option Chips', () => { expect(chipNativeElement.getAttribute('aria-selected')).toBe('true'); })); + it('should disable focus on the checkmark', fakeAsync(() => { + // The checkmark is only shown in multi selection mode. + testComponent.chipList.multiple = true; + flush(); + fixture.detectChanges(); + + const checkmark = chipNativeElement.querySelector('.mdc-chip__checkmark-svg')!; + expect(checkmark.getAttribute('focusable')).toBe('false'); + })); + }); describe('when selectable is false', () => {