From e70be2756cf9fc48625ac5ba98df5833fb1f2281 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9becca?= Date: Thu, 13 Jun 2024 16:03:12 +0200 Subject: [PATCH] feat(label-wrapped): use font awesone icon instead of svg --- addon/components/pix-checkbox.js | 8 ++------ addon/components/pix-label-wrapped.hbs | 7 +++++++ addon/components/pix-label-wrapped.js | 8 ++++++++ addon/styles/_pix-checkbox.scss | 21 +++------------------ config/icons.js | 1 + 5 files changed, 21 insertions(+), 24 deletions(-) diff --git a/addon/components/pix-checkbox.js b/addon/components/pix-checkbox.js index 523a56bea..5af9ce497 100644 --- a/addon/components/pix-checkbox.js +++ b/addon/components/pix-checkbox.js @@ -32,12 +32,8 @@ export default class PixCheckbox extends Component { classes.push(`${classes[0]}--indeterminate`); } - if (this.hasSuccessState) { - classes.push(`${classes[0]}--state-success`); - } - - if (this.hasErrorState) { - classes.push(`${classes[0]}--state-error`); + if (this.hasSuccessState || this.hasErrorState) { + classes.push(`${classes[0]}--state`); } return classes.join(' '); diff --git a/addon/components/pix-label-wrapped.hbs b/addon/components/pix-label-wrapped.hbs index 9c7f7c87f..551406be8 100644 --- a/addon/components/pix-label-wrapped.hbs +++ b/addon/components/pix-label-wrapped.hbs @@ -1,4 +1,11 @@