#MatChip in MatChipListbox doesn't get selected if width is increased

14 messages ยท Page 1 of 1 (latest)

hot plinth
#

This is my current CSS

mat-chip-listbox
  width: 100%

  ::ng-deep
    .mdc-evolution-chip-set__chips
      display: flex !important
      justify-content: space-evenly !important

      mat-chip-option
        flex: 1 1 0%

How can I get the same behavior when clicking on the part without text?

trim copper
#

Are you using the mat-mdc-chip-set-stacked? Because you shouldn't ned any of this ng-deep hackery (and it will get you in a lot of trouble).

hot plinth
trim copper
#

If you find you need to customize the components a lot, Angular Material might not be for you. Angular Material is designed to follow Material Design. Changing it will lead to trouble ๐Ÿ˜„

hot plinth
trim copper
#

Yes, but this might break on any Angular Material update.

#

Your desired layout does not follow Material Design -> Angular Material is probably the wrong choice.

#

Just a word of warning.
There is an Angular App that I worked on that is currently stuck on Angular 14, because updating it to the new Angular Material breaks so much that it is deemed infeasible.

hot plinth
hot plinth
trim copper
#

It's focused

hot plinth
#

Oh so it's intentional Material Design, ok

#

Thanks for everything ๐Ÿ™ I will now mark this post as resolved and close it