File tree Expand file tree Collapse file tree 2 files changed +12
-4
lines changed
Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,8 @@ import Checkmark16 from "@carbon/icons/es/checkmark/16";
2222import CheckmarkFilled16 from "@carbon/icons/es/checkmark--filled/16" ;
2323import CheckmarkFilled20 from "@carbon/icons/es/checkmark--filled/20" ;
2424import CheckmarkOutline16 from "@carbon/icons/es/checkmark--outline/16" ;
25+ import Checkbox16 from "@carbon/icons/es/checkbox/16" ;
26+ import CheckboxCheckedFilled16 from "@carbon/icons/es/checkbox--checked--filled/16" ;
2527import ChevronDown16 from "@carbon/icons/es/chevron--down/16" ;
2628import ChevronRight16 from "@carbon/icons/es/chevron--right/16" ;
2729import CircleDash16 from "@carbon/icons/es/circle-dash/16" ;
@@ -105,6 +107,8 @@ export class IconModule {
105107 CheckmarkFilled16 ,
106108 CheckmarkFilled20 ,
107109 CheckmarkOutline16 ,
110+ Checkbox16 ,
111+ CheckboxCheckedFilled16 ,
108112 ChevronDown16 ,
109113 ChevronRight16 ,
110114 CircleDash16 ,
Original file line number Diff line number Diff line change @@ -31,11 +31,15 @@ import { I18n } from "carbon-components-angular/i18n";
3131 'cds--tile--disabled' : disabled
3232 }"
3333 [attr.aria-label]="i18n.get('TILES.TILE') | async">
34- <div class="cds--tile__checkmark">
35- <svg width="16" height="16" viewBox="0 0 16 16">
36- <path d="M8 16A8 8 0 1 1 8 0a8 8 0 0 1 0 16zm3.646-10.854L6.75 10.043 4.354 7.646l-.708.708 3.104 3.103 5.604-5.603-.708-.708z"
37- fill-rule="evenodd"/>
34+ <div class="cds--tile__checkmark"
35+ [class.cds--tile__checkmark--persistent]="multiple">
36+ <svg *ngIf="!selected; else selectedIcon"
37+ [cdsIcon]="multiple ? 'checkbox' : 'checkmark'"
38+ size="16">
3839 </svg>
40+ <ng-template #selectedIcon>
41+ <svg [cdsIcon]="multiple ? 'checkbox--checked--filled' : 'checkmark--filled'" size="16"></svg>
42+ </ng-template>
3943 </div>
4044 <div class="cds--tile-content">
4145 <ng-content></ng-content>
You can’t perform that action at this time.
0 commit comments