angular / components

Component infrastructure and Material Design components for Angular
https://material.angular.io
MIT License
24.2k stars 6.69k forks source link

Support all types of chips outlines in the Material Design spec #16843

Open keatkeat87 opened 4 years ago

keatkeat87 commented 4 years ago

build-in Choice chips as material guidelines.

Choice chips image

choice chips need 2 feature,

  1. select by click not keyboard space.
  2. when user select, it can't be unselect anymore (like radio, toggle button)

for workaround i can do like this.

<mat-chip-list [formControl]="formControl" aria-label="Fish selection">
  <mat-chip #chip1="matChip" [selectable]="!chip1.selected" (click)="chip1.selectable && chip1.toggleSelected(true)" >One fish</mat-chip>
  <mat-chip #chip2="matChip" [selectable]="!chip2.selected" (click)="chip2.selectable && chip2.toggleSelected(true)" >Two fish</mat-chip>
  <mat-chip #chip3="matChip" [selectable]="!chip3.selected" (click)="chip3.selectable && chip3.toggleSelected(true)" >Primary fish</mat-chip>
  <mat-chip #chip4="matChip" [selectable]="!chip4.selected" (click)="chip4.selectable && chip4.toggleSelected(true)" >Accent fish</mat-chip>
</mat-chip-list>
siva636 commented 2 years ago

When it is likely to be ready?

angular-robot[bot] commented 2 years ago

Just a heads up that we kicked off a community voting process for your feature request. There are 20 days until the voting process ends.

Find more details about Angular's feature request process in our documentation.

angular-robot[bot] commented 2 years ago

Thank you for submitting your feature request! Looks like during the polling process it didn't collect a sufficient number of votes to move to the next stage.

We want to keep Angular rich and ergonomic and at the same time be mindful about its scope and learning journey. If you think your request could live outside Angular's scope, we'd encourage you to collaborate with the community on publishing it as an open source package.

You can find more details about the feature request process in our documentation.