From 1b65209414a8fcdba00bb3ae5fd3b5031570f06c Mon Sep 17 00:00:00 2001 From: Andrea Stagi Date: Thu, 31 Oct 2024 10:09:04 +0100 Subject: [PATCH] fix: groups for radios toggles and checkboxes --- .../button-example-color-dark.component.scss | 4 +- .../button-example-color.component.scss | 4 +- .../button-example-size.component.scss | 4 +- .../button-examples.component.scss | 4 +- .../checkbox-example-group.component.html | 35 ++++++++------- .../checkbox-example-group.component.scss | 2 - .../checkbox-example-inline.component.html | 9 ++-- .../checkbox-example-inline.component.scss | 2 - .../checkbox-example.component.html | 21 +++++---- .../checkbox-example.component.scss | 2 - .../popover-examples.component.scss | 11 +++-- .../progress-bar-example.component.scss | 5 +-- .../radio-checked-example.component.html | 10 +++-- .../radio-example.component.html | 45 ++++++++++++------- .../source-display.component.scss | 6 +-- .../table-of-content-item.component.scss | 31 +++++++------ .../table-of-content.component.scss | 10 ++--- .../toggle-example.component.html | 7 +-- .../toggle-example.component.scss | 9 ++-- 19 files changed, 115 insertions(+), 106 deletions(-) diff --git a/src/app/button/button-example-color-dark/button-example-color-dark.component.scss b/src/app/button/button-example-color-dark/button-example-color-dark.component.scss index ac902f23..f12efc71 100644 --- a/src/app/button/button-example-color-dark/button-example-color-dark.component.scss +++ b/src/app/button/button-example-color-dark/button-example-color-dark.component.scss @@ -1,4 +1,4 @@ button { - margin: 4px 8px; - width: 200px; + margin: 4px 8px; + width: 200px; } diff --git a/src/app/button/button-example-color/button-example-color.component.scss b/src/app/button/button-example-color/button-example-color.component.scss index ac902f23..f12efc71 100644 --- a/src/app/button/button-example-color/button-example-color.component.scss +++ b/src/app/button/button-example-color/button-example-color.component.scss @@ -1,4 +1,4 @@ button { - margin: 4px 8px; - width: 200px; + margin: 4px 8px; + width: 200px; } diff --git a/src/app/button/button-example-size/button-example-size.component.scss b/src/app/button/button-example-size/button-example-size.component.scss index ac902f23..f12efc71 100644 --- a/src/app/button/button-example-size/button-example-size.component.scss +++ b/src/app/button/button-example-size/button-example-size.component.scss @@ -1,4 +1,4 @@ button { - margin: 4px 8px; - width: 200px; + margin: 4px 8px; + width: 200px; } diff --git a/src/app/button/button-examples/button-examples.component.scss b/src/app/button/button-examples/button-examples.component.scss index ac902f23..f12efc71 100644 --- a/src/app/button/button-examples/button-examples.component.scss +++ b/src/app/button/button-examples/button-examples.component.scss @@ -1,4 +1,4 @@ button { - margin: 4px 8px; - width: 200px; + margin: 4px 8px; + width: 200px; } diff --git a/src/app/checkbox/checkbox-example-group/checkbox-example-group.component.html b/src/app/checkbox/checkbox-example-group/checkbox-example-group.component.html index 03e52e14..0a0eb30f 100644 --- a/src/app/checkbox/checkbox-example-group/checkbox-example-group.component.html +++ b/src/app/checkbox/checkbox-example-group/checkbox-example-group.component.html @@ -1,20 +1,23 @@

Gruppi

-

- - Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas molestie libero - - - Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas molestie libero. Lorem ipsum dolor sit amet, consectetur adipiscing - elit. Maecenas molestie liber - - - - Terza checkbox raggruppata +

+
+ Gruppo di checkbox + + Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas molestie libero + + + Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas molestie libero. Lorem ipsum dolor sit amet, consectetur + adipiscing elit. Maecenas molestie liber + + + + Terza checkbox raggruppata - Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas molestie libero. Lorem ipsum dolor sit amet, consectetur adipiscing - elit. Maecenas molestie libero. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas molestie libero - -

+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas molestie libero. Lorem ipsum dolor sit amet, consectetur + adipiscing elit. Maecenas molestie libero. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas molestie libero + +
+
diff --git a/src/app/checkbox/checkbox-example-group/checkbox-example-group.component.scss b/src/app/checkbox/checkbox-example-group/checkbox-example-group.component.scss index 139597f9..e69de29b 100644 --- a/src/app/checkbox/checkbox-example-group/checkbox-example-group.component.scss +++ b/src/app/checkbox/checkbox-example-group/checkbox-example-group.component.scss @@ -1,2 +0,0 @@ - - diff --git a/src/app/checkbox/checkbox-example-inline/checkbox-example-inline.component.html b/src/app/checkbox/checkbox-example-inline/checkbox-example-inline.component.html index 4af32c12..e18e6183 100644 --- a/src/app/checkbox/checkbox-example-inline/checkbox-example-inline.component.html +++ b/src/app/checkbox/checkbox-example-inline/checkbox-example-inline.component.html @@ -1,6 +1,9 @@

Inline

- - - +
+ Gruppo di checkbox + + + +
diff --git a/src/app/checkbox/checkbox-example-inline/checkbox-example-inline.component.scss b/src/app/checkbox/checkbox-example-inline/checkbox-example-inline.component.scss index 139597f9..e69de29b 100644 --- a/src/app/checkbox/checkbox-example-inline/checkbox-example-inline.component.scss +++ b/src/app/checkbox/checkbox-example-inline/checkbox-example-inline.component.scss @@ -1,2 +0,0 @@ - - diff --git a/src/app/checkbox/checkbox-example/checkbox-example.component.html b/src/app/checkbox/checkbox-example/checkbox-example.component.html index 599d2145..c3d2e95b 100644 --- a/src/app/checkbox/checkbox-example/checkbox-example.component.html +++ b/src/app/checkbox/checkbox-example/checkbox-example.component.html @@ -1,16 +1,19 @@

Configurazione checkbox

-

- - - - -

- +
+
+ Gruppo di checkbox + + + + +
+
+

Risultato

-

+

@@ -19,5 +22,5 @@

Risultato

Sono una checkbox
-

+
diff --git a/src/app/checkbox/checkbox-example/checkbox-example.component.scss b/src/app/checkbox/checkbox-example/checkbox-example.component.scss index 139597f9..e69de29b 100644 --- a/src/app/checkbox/checkbox-example/checkbox-example.component.scss +++ b/src/app/checkbox/checkbox-example/checkbox-example.component.scss @@ -1,2 +0,0 @@ - - diff --git a/src/app/popover/popover-examples/popover-examples.component.scss b/src/app/popover/popover-examples/popover-examples.component.scss index 67b7c114..80895767 100644 --- a/src/app/popover/popover-examples/popover-examples.component.scss +++ b/src/app/popover/popover-examples/popover-examples.component.scss @@ -1,7 +1,6 @@ .example-section { - display: flex; - align-content: center; - align-items: center; - height: 60px; - } - \ No newline at end of file + display: flex; + align-content: center; + align-items: center; + height: 60px; +} diff --git a/src/app/progress-bar/progress-bar-example/progress-bar-example.component.scss b/src/app/progress-bar/progress-bar-example/progress-bar-example.component.scss index b0b9c35a..e43b83aa 100644 --- a/src/app/progress-bar/progress-bar-example/progress-bar-example.component.scss +++ b/src/app/progress-bar/progress-bar-example/progress-bar-example.component.scss @@ -1,5 +1,4 @@ .example-section { - align-content: center; - align-items: center; + align-content: center; + align-items: center; } - \ No newline at end of file diff --git a/src/app/radio/radio-checked-example/radio-checked-example.component.html b/src/app/radio/radio-checked-example/radio-checked-example.component.html index 2db87f96..5414aec7 100644 --- a/src/app/radio/radio-checked-example/radio-checked-example.component.html +++ b/src/app/radio/radio-checked-example/radio-checked-example.component.html @@ -1,12 +1,14 @@

Radio checked

- +
+ Seleziona la nazionalità + - + - + +
-
Nazione selezionata: {{ selectedNation }}
diff --git a/src/app/radio/radio-example/radio-example.component.html b/src/app/radio/radio-example/radio-example.component.html index 81857164..23efe00a 100644 --- a/src/app/radio/radio-example/radio-example.component.html +++ b/src/app/radio/radio-example/radio-example.component.html @@ -7,25 +7,33 @@

Configurazione Radio button

Risultato

- +
+ Seleziona il tuo colore preferito + +
Colore selezionato: {{ selectedColor }}

Radio con link

- - Label con link - - - Altra label con link - +
+ Gruppo di radio + + Label con link + + + Altra label con link + +
Link selezionato: {{ link }} @@ -36,10 +44,13 @@

Radio con link

Radio in Reactive Form

Qual è il tuo sesso?

- - - - +
+ Gruppo di radio + + + + +
diff --git a/src/app/shared/source-display/source-display.component.scss b/src/app/shared/source-display/source-display.component.scss index a5ac1fdd..22b3ba22 100644 --- a/src/app/shared/source-display/source-display.component.scss +++ b/src/app/shared/source-display/source-display.component.scss @@ -1,5 +1,5 @@ .bd-example { - border-top: none; - margin-top: auto; - padding-top: 20px; + border-top: none; + margin-top: auto; + padding-top: 20px; } diff --git a/src/app/table-of-content-item/table-of-content-item.component.scss b/src/app/table-of-content-item/table-of-content-item.component.scss index b9a5d258..c33e8a96 100644 --- a/src/app/table-of-content-item/table-of-content-item.component.scss +++ b/src/app/table-of-content-item/table-of-content-item.component.scss @@ -20,10 +20,10 @@ .bd-toc-link { display: block; - padding: .5rem 1rem; + padding: 0.5rem 1rem; @include media-breakpoint-up(md) { - padding-top: .25rem; - padding-bottom: .25rem; + padding-top: 0.25rem; + padding-bottom: 0.25rem; } color: $gray-800; @@ -33,33 +33,32 @@ } .bd-toc-item { - background-color: $white; - &.active { - > .bd-toc-link { - color: $primary; - font-weight: 600; + background-color: $white; + &.active { + > .bd-toc-link { + color: $primary; + font-weight: 600; - &:hover { - background-color: transparent; - } + &:hover { + background-color: transparent; } + } - .bd-sidenav { - display: block; - } + .bd-sidenav { + display: block; } + } } .bd-sidenav { display: none; } - // All levels of nav .nav { > li > a { display: inline-block; - padding: .25rem .5rem .25rem 1.5rem; + padding: 0.25rem 0.5rem 0.25rem 1.5rem; font-size: 16px; color: $gray-800; &:hover { diff --git a/src/app/table-of-content/table-of-content.component.scss b/src/app/table-of-content/table-of-content.component.scss index 33c77c07..435a9853 100644 --- a/src/app/table-of-content/table-of-content.component.scss +++ b/src/app/table-of-content/table-of-content.component.scss @@ -4,7 +4,7 @@ .bd-sidebar { order: 0; - border-bottom: 1px solid rgba(0, 0, 0, .1); + border-bottom: 1px solid rgba(0, 0, 0, 0.1); @include media-breakpoint-up(md) { @supports (position: sticky) { position: sticky; @@ -12,12 +12,12 @@ height: calc(100vh - 5rem); overflow-y: auto; } - border-right: 1px solid rgba(0, 0, 0, .1); + border-right: 1px solid rgba(0, 0, 0, 0.1); } @include media-breakpoint-up(md) { padding: 1.5rem 0; - border-right: 1px solid rgba(0, 0, 0, .1); + border-right: 1px solid rgba(0, 0, 0, 0.1); } @include media-breakpoint-up(xl) { @@ -40,7 +40,3 @@ display: block !important; } } - - - - diff --git a/src/app/toggle/toggle-example/toggle-example.component.html b/src/app/toggle/toggle-example/toggle-example.component.html index 3420e4bf..711aa134 100644 --- a/src/app/toggle/toggle-example/toggle-example.component.html +++ b/src/app/toggle/toggle-example/toggle-example.component.html @@ -1,10 +1,11 @@

Configurazione toggle

-

+

+ Seleziona le caratteristiche -

- +
+

Risultato

diff --git a/src/app/toggle/toggle-example/toggle-example.component.scss b/src/app/toggle/toggle-example/toggle-example.component.scss index ed6303f7..80895767 100644 --- a/src/app/toggle/toggle-example/toggle-example.component.scss +++ b/src/app/toggle/toggle-example/toggle-example.component.scss @@ -1,7 +1,6 @@ .example-section { - display: flex; - align-content: center; - align-items: center; - height: 60px; + display: flex; + align-content: center; + align-items: center; + height: 60px; } - \ No newline at end of file