angulardart/angular_components

material-checkbox and material-radio labels are inconsistent

alescdb opened this issue · 1 comments

Hi everyone,

He is a simple loop that build a list of checkbox or radio :

<div *ngFor="let c of choices">
  <material-checkbox *ngIf="list.listType == 0" [label]="c.title" [checked]="c.defaultValue"></material-checkbox>
  <material-radio *ngIf="list.listType == 1" [checked]="c.defaultValue">{{c.title}}</material-radio>
</div>

My first instinct was to write both material-checkbox and material-radio the same way (either with label or in tag text)
Nothing serious here, but it feels unnatural and inconsistent :-)

We would like to fix these types of inconsistencies, but they come with a large cost of updating all of the locations in client applications where they are used. Those types of cleanups are not a high priority for us at the moment.