components icon indicating copy to clipboard operation
components copied to clipboard

Material chip list should support being not focusable

Open mertdeg opened this issue 9 years ago • 4 comments

Bug, feature request, or proposal:

Feature request

What is the expected behavior?

I should be able to pass in an @Input() to mat-chip-list so that it doesn't have tabIndex = 0 by default. Sometimes we want to display chips within a tooltip. And we don't want user to be able to focus on individual chips.

What is the current behavior?

mat-chip-list is always focusable by default

What are the steps to reproduce?

Create mat-chip-list with non-zero chips inside

What is the use-case or motivation for changing an existing behavior?

To increase use cases for material chip list component

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

All

mertdeg avatar Jul 26 '17 19:07 mertdeg

@jelbourn as FYI

mertdeg avatar Jul 26 '17 19:07 mertdeg

@tinayuangao the chip list should respect a user-provided tabIndex if there is one

jelbourn avatar Jul 26 '17 20:07 jelbourn

This doesn't seem to make the chip appear to be not interactive when you click on the chip, it still has a ripple. Is there a way to have a readonly chip but is not disabled?

bsteffl avatar Feb 07 '19 13:02 bsteffl

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.