Skip to content

Commit

Permalink
fix(material): handle undefined color palette for checkbox (#2109)
Browse files Browse the repository at this point in the history
fix #2101
  • Loading branch information
aitboudad committed Feb 20, 2020
1 parent 7deac1a commit 8998b61
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/material/checkbox/src/checkbox.type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export class FormlyFieldCheckbox extends FieldType {
floatLabel: 'always',
hideLabel: true,
align: 'start', // start or end
color: 'accent', // workaround for https://github.com/angular/components/issues/18465
},
};

Expand Down
1 change: 1 addition & 0 deletions src/material/multicheckbox/src/multicheckbox.type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export class FormlyFieldMultiCheckbox extends FieldType {
hideFieldUnderline: true,
floatLabel: 'always',
options: [],
color: 'accent', // workaround for https://github.com/angular/components/issues/18465
},
};

Expand Down

0 comments on commit 8998b61

Please sign in to comment.