From 819eb45a5b44a9a46eae01821af829a3659c16b6 Mon Sep 17 00:00:00 2001 From: Mario Traetta Date: Mon, 30 Jul 2018 12:48:29 +0200 Subject: [PATCH] docs(Button): Reimposta e semplifica la struttura della documentazione del bottone ref #44 --- .../button-example-color.component.html | 24 +++++++------- .../button-example-color.component.ts | 5 --- .../button-example-interactive.component.html | 14 +++++--- .../button-example-size.component.html | 12 +++---- .../button-example-size.component.ts | 7 ---- .../button-examples.component.tpl | 33 ++++++++++--------- 6 files changed, 44 insertions(+), 51 deletions(-) diff --git a/src/app/button/button-example-color/button-example-color.component.html b/src/app/button/button-example-color/button-example-color.component.html index 3ba7bc47..6a8fb0ef 100644 --- a/src/app/button/button-example-color/button-example-color.component.html +++ b/src/app/button/button-example-color/button-example-color.component.html @@ -4,28 +4,28 @@

Varianti di colore con sfondo chiaro

- Primary - Primary outline - Primary disabled + Primary + Primary outline + Primary disabled

- Secondary - Secondary outline - Secondary disabled + Secondary + Secondary outline + Secondary disabled

Varianti di colore con sfondo scuro

- Primary - Primary outline - Primary disabled + Primary + Primary outline + Primary disabled

- Secondary - Secondary outline - Secondary disabled + Secondary + Secondary outline + Secondary disabled

diff --git a/src/app/button/button-example-color/button-example-color.component.ts b/src/app/button/button-example-color/button-example-color.component.ts index 7f562f3c..547e00bc 100644 --- a/src/app/button/button-example-color/button-example-color.component.ts +++ b/src/app/button/button-example-color/button-example-color.component.ts @@ -7,11 +7,6 @@ import { Component, OnInit } from '@angular/core'; }) export class ButtonExampleColorComponent implements OnInit { - primaryColor = 'primary'; - secondaryColor = 'secondary'; - isDisabled = true; - isOutlined = true; - constructor() { } ngOnInit() { diff --git a/src/app/button/button-example-interactive/button-example-interactive.component.html b/src/app/button/button-example-interactive/button-example-interactive.component.html index 4edf134c..2d2fdc96 100644 --- a/src/app/button/button-example-interactive/button-example-interactive.component.html +++ b/src/app/button/button-example-interactive/button-example-interactive.component.html @@ -15,26 +15,30 @@
Opzioni
-
+
Dimensione
+
-
+
Colorazione
-
+
+ +
+
-
-
+
+
diff --git a/src/app/button/button-example-size/button-example-size.component.html b/src/app/button/button-example-size/button-example-size.component.html index e3a41401..c62edcc8 100644 --- a/src/app/button/button-example-size/button-example-size.component.html +++ b/src/app/button/button-example-size/button-example-size.component.html @@ -3,31 +3,31 @@

Varianti di dimensione

- + Button XS - + Button XS

- + Button SM - + Button SM

- + Button LG - + Button LG

diff --git a/src/app/button/button-example-size/button-example-size.component.ts b/src/app/button/button-example-size/button-example-size.component.ts index 3cddc484..21603dcd 100644 --- a/src/app/button/button-example-size/button-example-size.component.ts +++ b/src/app/button/button-example-size/button-example-size.component.ts @@ -7,13 +7,6 @@ import { Component, OnInit } from '@angular/core'; }) export class ButtonExampleSizeComponent implements OnInit { - primaryColor = 'primary'; - secondaryColor = 'secondary'; - - lgSize = 'lg'; - smSize = 'sm'; - xsSize = 'xs'; - constructor() { } ngOnInit() { diff --git a/src/app/button/button-examples/button-examples.component.tpl b/src/app/button/button-examples/button-examples.component.tpl index 24581195..f8be28b0 100644 --- a/src/app/button/button-examples/button-examples.component.tpl +++ b/src/app/button/button-examples/button-examples.component.tpl @@ -1,3 +1,17 @@ +{% set interactiveHtml %} + {% include "../button-example-interactive/button-example-interactive.component.html" %} +{% endset %} + +{% set interactiveTs %} + {% include "../button-example-interactive/button-example-interactive.component.ts" %} +{% endset %} + + + + + + {% set html %} {% include "../button-example/button-example.component.html" %} {% endset %} @@ -8,7 +22,7 @@ - + {% set colorHtml %} @@ -21,7 +35,7 @@ - + {% set sizeHtml %} @@ -34,18 +48,5 @@ - + - -{% set interactiveHtml %} - {% include "../button-example-interactive/button-example-interactive.component.html" %} -{% endset %} - -{% set interactiveTs %} - {% include "../button-example-interactive/button-example-interactive.component.ts" %} -{% endset %} - - - - - \ No newline at end of file