Components: Material chip list should support being not focusable

Created on 26 Jul 2017  路  4Comments  路  Source: angular/components

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

P3 has pr

Most helpful comment

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?

All 4 comments

@jelbourn as FYI

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

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?

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._

Was this page helpful?
0 / 5 - 0 ratings

Related issues

theunreal picture theunreal  路  3Comments

kara picture kara  路  3Comments

alanpurple picture alanpurple  路  3Comments

Miiekeee picture Miiekeee  路  3Comments

MurhafSousli picture MurhafSousli  路  3Comments