Skip to content

Commit

Permalink
fix(chip): fix color class
Browse files Browse the repository at this point in the history
  • Loading branch information
matmkian committed Dec 2, 2019
1 parent b5a4ca5 commit 7ee25e6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions components/chip/js/chip_directive.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,13 @@ function ChipController() {

let color;
if (lx.color) {
({ color } = lx.color);
// eslint-disable-next-line prefer-destructuring
color = lx.color;
} else if (angular.isDefined(lx.theme) && lx.theme) {
color = lx.theme === 'light' ? 'dark' : 'light';
} else {
({ color } = _DEFAULT_PROPS.color);
// eslint-disable-next-line prefer-destructuring
color = _DEFAULT_PROPS.color;
}

const size = lx.size ? lx.size : _DEFAULT_PROPS.size;
Expand Down

0 comments on commit 7ee25e6

Please sign in to comment.