From 7860c71401dc254566d298222f3e857aa1e2e852 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?W=C3=A9rmeson=20Lopes?= <138120453+wermeson-lopes-brisa@users.noreply.github.com> Date: Tue, 3 Oct 2023 11:40:54 -0300 Subject: [PATCH] feat: add no content text on indicator component (#854) * feat: add no content text on indicator component * feat: suggested code refactoring applied * feat: remove expendable function * feat: story for this task --------- Co-authored-by: Iury Nogueira --- .../lib/indicator/indicator.component.html | 21 ++++++++-- .../lib/indicator/indicator.component.scss | 4 ++ .../lib/indicator/indicator.component.spec.ts | 39 +++++++++++++------ .../src/lib/indicator/indicator.component.ts | 4 +- .../ion/src/lib/indicator/indicator.module.ts | 10 +++-- stories/Indicator.stories.ts | 13 +++++-- 6 files changed, 67 insertions(+), 24 deletions(-) diff --git a/projects/ion/src/lib/indicator/indicator.component.html b/projects/ion/src/lib/indicator/indicator.component.html index 1b0edadb4..a4e11dd3a 100644 --- a/projects/ion/src/lib/indicator/indicator.component.html +++ b/projects/ion/src/lib/indicator/indicator.component.html @@ -39,9 +39,24 @@

{{ title }}

color="primary" > -
-

{{ value }}

-

{{ secondValue }}

+
+ +

{{ value }}

+

{{ secondValue }}

+
+ + +