From 873c8d790d505a9e4f3b1a303197cefba5188821 Mon Sep 17 00:00:00 2001 From: Kirill Bogdanov Date: Fri, 29 Mar 2024 11:22:42 +0300 Subject: [PATCH] feature: BIM-17710 - update badge demo page --- .../badge-demo/badge-demo.component.html | 12 ++++++----- .../badge-demo/badge-demo.component.scss | 19 ++---------------- .../pages/badge-demo/badge-demo.component.ts | 20 +++++++++++++------ 3 files changed, 23 insertions(+), 28 deletions(-) diff --git a/projects/demo/src/app/pages/badge-demo/badge-demo.component.html b/projects/demo/src/app/pages/badge-demo/badge-demo.component.html index 82260da28..74662cdc2 100644 --- a/projects/demo/src/app/pages/badge-demo/badge-demo.component.html +++ b/projects/demo/src/app/pages/badge-demo/badge-demo.component.html @@ -31,17 +31,19 @@

Badge marker block

- - -
+ + + + Badge marker + - + Badge indicator + - Badge marker with indicator
diff --git a/projects/demo/src/app/pages/badge-demo/badge-demo.component.scss b/projects/demo/src/app/pages/badge-demo/badge-demo.component.scss index b66b5c3d3..a5e4beec2 100644 --- a/projects/demo/src/app/pages/badge-demo/badge-demo.component.scss +++ b/projects/demo/src/app/pages/badge-demo/badge-demo.component.scss @@ -1,22 +1,7 @@ -@use 'demo-variables' as *; - -@use 'mixins' as *; -@use 'functions' as *; - .content { display: flex; flex-direction: row; - margin-top: 4rem; + margin-top: 1rem; align-items: center; - gap: 4rem; - - &__marker { - background-color: semantic-color(kind-primary-normal); - height: 100%; - width: 9rem; - } - - &__indicator { - display: inline; - } + gap: 8rem; } diff --git a/projects/demo/src/app/pages/badge-demo/badge-demo.component.ts b/projects/demo/src/app/pages/badge-demo/badge-demo.component.ts index 4328b25b9..b9d4f5f85 100644 --- a/projects/demo/src/app/pages/badge-demo/badge-demo.component.ts +++ b/projects/demo/src/app/pages/badge-demo/badge-demo.component.ts @@ -25,17 +25,25 @@ export class BadgeDemoComponent { public readonly stateOptions: PropsOption[] = [ { - caption: 'Progress', - value: 'progress', + caption: 'New', + value: 'new', isDefault: true, }, { - caption: 'Complete', - value: 'complete', + caption: 'Success', + value: 'success', }, { - caption: 'Error', - value: 'error', + caption: 'Danger', + value: 'danger', + }, + { + caption: 'Warning', + value: 'warning', + }, + { + caption: 'Loading', + value: 'loading', }, ];