-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: groups for radios toggles and checkboxes
- Loading branch information
Showing
19 changed files
with
115 additions
and
106 deletions.
There are no files selected for viewing
4 changes: 2 additions & 2 deletions
4
src/app/button/button-example-color-dark/button-example-color-dark.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
button { | ||
margin: 4px 8px; | ||
width: 200px; | ||
margin: 4px 8px; | ||
width: 200px; | ||
} |
4 changes: 2 additions & 2 deletions
4
src/app/button/button-example-color/button-example-color.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
button { | ||
margin: 4px 8px; | ||
width: 200px; | ||
margin: 4px 8px; | ||
width: 200px; | ||
} |
4 changes: 2 additions & 2 deletions
4
src/app/button/button-example-size/button-example-size.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
button { | ||
margin: 4px 8px; | ||
width: 200px; | ||
margin: 4px 8px; | ||
width: 200px; | ||
} |
4 changes: 2 additions & 2 deletions
4
src/app/button/button-examples/button-examples.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
button { | ||
margin: 4px 8px; | ||
width: 200px; | ||
margin: 4px 8px; | ||
width: 200px; | ||
} |
35 changes: 19 additions & 16 deletions
35
src/app/checkbox/checkbox-example-group/checkbox-example-group.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,23 @@ | ||
<h3>Gruppi</h3> | ||
<div class="bd-example"> | ||
<p class="example-section"> | ||
<it-checkbox label="Prima checkbox raggruppata" group="true"> | ||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas molestie libero | ||
</it-checkbox> | ||
<it-checkbox label="Seconda checkbox raggruppata" group="true"> | ||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas molestie libero. Lorem ipsum dolor sit amet, consectetur adipiscing | ||
elit. Maecenas molestie liber | ||
</it-checkbox> | ||
<it-checkbox group="true"> | ||
<ng-container label> | ||
Terza <a href="https://italia.github.io/bootstrap-italia/docs/form/checkbox/">checkbox</a> raggruppata</ng-container | ||
> | ||
<div class="example-section"> | ||
<fieldset> | ||
<legend>Gruppo di checkbox</legend> | ||
<it-checkbox label="Prima checkbox raggruppata" group="true"> | ||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas molestie libero | ||
</it-checkbox> | ||
<it-checkbox label="Seconda checkbox raggruppata" group="true"> | ||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas molestie libero. Lorem ipsum dolor sit amet, consectetur | ||
adipiscing elit. Maecenas molestie liber | ||
</it-checkbox> | ||
<it-checkbox group="true"> | ||
<ng-container label> | ||
Terza <a href="https://italia.github.io/bootstrap-italia/docs/form/checkbox/">checkbox</a> raggruppata</ng-container | ||
> | ||
|
||
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 | ||
</it-checkbox> | ||
</p> | ||
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 | ||
</it-checkbox> | ||
</fieldset> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +0,0 @@ | ||
|
||
|
||
9 changes: 6 additions & 3 deletions
9
src/app/checkbox/checkbox-example-inline/checkbox-example-inline.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
<h3>Inline</h3> | ||
<div class="bd-example"> | ||
<it-checkbox label="label 1" inline="true"></it-checkbox> | ||
<it-checkbox label="label 2" inline="true"></it-checkbox> | ||
<it-checkbox label="label 3" inline="true"></it-checkbox> | ||
<fieldset> | ||
<legend>Gruppo di checkbox</legend> | ||
<it-checkbox label="label 1" inline="true"></it-checkbox> | ||
<it-checkbox label="label 2" inline="true"></it-checkbox> | ||
<it-checkbox label="label 3" inline="true"></it-checkbox> | ||
</fieldset> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +0,0 @@ | ||
|
||
|
||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +0,0 @@ | ||
|
||
|
||
11 changes: 5 additions & 6 deletions
11
src/app/popover/popover-examples/popover-examples.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
} |
5 changes: 2 additions & 3 deletions
5
src/app/progress-bar/progress-bar-example/progress-bar-example.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
.example-section { | ||
align-content: center; | ||
align-items: center; | ||
align-content: center; | ||
align-items: center; | ||
} | ||
|
10 changes: 6 additions & 4 deletions
10
src/app/radio/radio-checked-example/radio-checked-example.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
<h3>Radio checked</h3> | ||
<div class="bd-example"> | ||
<div class="example-section"> | ||
<it-radio-button name="nation" value="USA" label="USA" [(ngModel)]="selectedNation"></it-radio-button> | ||
<fieldset> | ||
<legend>Seleziona la nazionalità</legend> | ||
<it-radio-button name="nation" value="USA" label="USA" [(ngModel)]="selectedNation"></it-radio-button> | ||
|
||
<it-radio-button name="nation" value="Italia" label="Italia" [(ngModel)]="selectedNation"></it-radio-button> | ||
<it-radio-button name="nation" value="Italia" label="Italia" [(ngModel)]="selectedNation"></it-radio-button> | ||
|
||
<it-radio-button name="nation" value="Spagna" label="Spagna" [(ngModel)]="selectedNation"></it-radio-button> | ||
<it-radio-button name="nation" value="Spagna" label="Spagna" [(ngModel)]="selectedNation"></it-radio-button> | ||
</fieldset> | ||
</div> | ||
|
||
<div class="example-selected-value">Nazione selezionata: {{ selectedNation }}</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
.bd-example { | ||
border-top: none; | ||
margin-top: auto; | ||
padding-top: 20px; | ||
border-top: none; | ||
margin-top: auto; | ||
padding-top: 20px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
} | ||
|