Skip to content

Commit

Permalink
fix(color): fix default colors for uk-toggle-switch and uk-label
Browse files Browse the repository at this point in the history
  • Loading branch information
anehx committed Nov 2, 2022
1 parent 91e753c commit b3c4c33
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion addon/components/uk-label.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import color, { COLOR_OPTIONS } from "ember-uikit/-private/color";
import width from "ember-uikit/-private/width";

export const LABEL_COLOR_OPTIONS = [
"",
COLOR_OPTIONS.NONE,
COLOR_OPTIONS.SUCCESS,
COLOR_OPTIONS.WARNING,
COLOR_OPTIONS.DANGER,
Expand All @@ -14,6 +14,7 @@ export default class UkButtonComponent extends Component {
@color({
template: "uk-label-$value$",
options: LABEL_COLOR_OPTIONS,
defaultValue: COLOR_OPTIONS.NONE,
})
color;

Expand Down
1 change: 1 addition & 0 deletions addon/components/uk-toggle-switch.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export default class UkToggleSwitchComponent extends Component {
@color({
template: "uk-toggle-switch-$value$",
options: Object.values(COLOR_OPTIONS),
defaultValue: COLOR_OPTIONS.DEFAULT,
})
color;

Expand Down

0 comments on commit b3c4c33

Please sign in to comment.