-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ajustement état onglet. Ajout variante onglets verticaux (#122)
Signed-off-by: Alexis Boulerice <[email protected]>
- Loading branch information
1 parent
d5960ed
commit 7afe7ee
Showing
15 changed files
with
283 additions
and
53 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
{ | ||
"orientation": "horizontal", | ||
"orientationClass": false, | ||
"navTabs": { | ||
"navItem": [ | ||
{ | ||
"icon": false, | ||
"id": "nav-item-1", | ||
"class": "active show", | ||
"title": "Nav item #1", | ||
"tabContentId": "tabContent1", | ||
"selected": "true" | ||
}, | ||
{ | ||
"icon": false, | ||
"id": "nav-item-2", | ||
"class": false, | ||
"title": "Nav item #2", | ||
"tabContentId": "tabContent2", | ||
"selected": "false" | ||
}, | ||
{ | ||
"icon": false, | ||
"id": "nav-item-3", | ||
"class": false, | ||
"title": "Longer label for nav item #3", | ||
"tabContentId": "tabContent3", | ||
"selected": "false" | ||
}, | ||
{ | ||
"icon": false, | ||
"id": "nav-item-4", | ||
"class": "disabled", | ||
"title": "Nav item #4", | ||
"tabContentId": "tabContent4", | ||
"isDisabled": "true" | ||
} | ||
] | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
title: Onglets avec icone | ||
--- | ||
|
||
## Utilisation | ||
|
||
Utiliser un maximum de 4 onglets. | ||
|
||
## Tailles | ||
|
||
Les Tabs par default sont de taille médiums. Ils sont disponibles également en version large avec la classea suivante: <code>.nav-tabs-lg</code>. | ||
|
||
[Voir plus de détails sur les tabs Bootstrap](https://getbootstrap.com/docs/4.3/components/navs/#tabs) |
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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{ | ||
"orientation": "horizontal", | ||
"navTabs": { | ||
"navItem": [ | ||
{ | ||
"icon-name": "icon-delivery", | ||
"id": "nav-item-ic-1", | ||
"class": "active show", | ||
"title": "Nav item #1", | ||
"tabContentId": "tabContent1", | ||
"selected": "true" | ||
}, | ||
{ | ||
"icon-name": "icon-cone", | ||
"id": "nav-item-ic-2", | ||
"class": false, | ||
"title": "Nav item #2", | ||
"tabContentId": "tabContent2", | ||
"selected": "false" | ||
}, | ||
{ | ||
"icon-name": "icon-cone", | ||
"id": "nav-item-ic-3", | ||
"class": false, | ||
"title": "Longer label for nav item #3", | ||
"tabContentId": "tabContent3", | ||
"selected": "false" | ||
}, | ||
{ | ||
"icon-name": "icon-cone", | ||
"id": "nav-item-ic-4", | ||
"class": "disabled", | ||
"title": "Nav item #4", | ||
"tabContentId": "tabContent4", | ||
"isDisabled": "true" | ||
} | ||
] | ||
} | ||
} |
40 changes: 40 additions & 0 deletions
40
source/_patterns/02-components/onglet/05-tabs-vertical.json
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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
{ | ||
"orientation": "vertical", | ||
"orientationClass": "nav-vertical", | ||
"navTabs": { | ||
"navItem": [ | ||
{ | ||
"icon": false, | ||
"id": "nav-item-vert-1", | ||
"class": "active show", | ||
"title": "Nav item #1", | ||
"tabContentId": "tabContent1", | ||
"selected": "true" | ||
}, | ||
{ | ||
"icon": false, | ||
"id": "nav-item-vert-2", | ||
"class": false, | ||
"title": "Nav item #2", | ||
"tabContentId": "tabContent2", | ||
"selected": "false" | ||
}, | ||
{ | ||
"icon": false, | ||
"id": "nav-item-vert-3", | ||
"class": false, | ||
"title": "Longer label for nav item #3", | ||
"tabContentId": "tabContent3", | ||
"selected": "false" | ||
}, | ||
{ | ||
"icon": false, | ||
"id": "nav-item-vert-4", | ||
"class": "disabled", | ||
"title": "Nav item #4", | ||
"tabContentId": "tabContent4", | ||
"isDisabled": true | ||
} | ||
] | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
title: Onglets horizontaux | ||
--- | ||
|
||
## Utilisation | ||
|
||
Utiliser un maximum de 4 onglets. | ||
|
||
## Tailles | ||
|
||
Les Tabs par default sont de taille médiums. Ils sont disponibles également en version large avec la classea suivante: <code>.nav-tabs-lg</code>. | ||
|
||
[Voir plus de détails sur les tabs Bootstrap](https://getbootstrap.com/docs/4.3/components/navs/#tabs) |
9 changes: 9 additions & 0 deletions
9
source/_patterns/02-components/onglet/05-tabs-vertical.mustache
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<h4 class="pl-pattern-subtitle">Large</h4> | ||
<div class="pl-mb-4"> | ||
{{> components-tab-item(navTabsClass: "nav-tabs-lg") }} | ||
</div> | ||
|
||
<h4 class="pl-pattern-subtitle">Medium</h4> | ||
<div class="pl-mb-4"> | ||
{{> components-tab-item }} | ||
</div> |
13 changes: 13 additions & 0 deletions
13
source/_patterns/02-components/onglet/06-tabs-vertical-icon.md
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
title: Onglets verticaux avec icone | ||
--- | ||
|
||
## Utilisation | ||
|
||
Utiliser un maximum de 4 onglets. | ||
|
||
## Tailles | ||
|
||
Les Tabs par default sont de taille médiums. Ils sont disponibles également en version large avec la classea suivante: <code>.nav-tabs-lg</code>. | ||
|
||
[Voir plus de détails sur les tabs Bootstrap](https://getbootstrap.com/docs/4.3/components/navs/#tabs) |
40 changes: 40 additions & 0 deletions
40
source/_patterns/02-components/onglet/06-tabs-vertical~icon.json
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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
{ | ||
"orientation": "vertical", | ||
"orientationClass": "nav-vertical", | ||
"navTabs": { | ||
"navItem": [ | ||
{ | ||
"icon-name": "icon-delivery", | ||
"id": "nav-item-ic-vert-1", | ||
"class": "active show", | ||
"title": "Nav item #1", | ||
"tabContentId": "tabContent1", | ||
"selected": "true" | ||
}, | ||
{ | ||
"icon-name": "icon-cone", | ||
"id": "nav-item-ic-vert-2", | ||
"class": false, | ||
"title": "Nav item #2", | ||
"tabContentId": "tabContent2", | ||
"selected": "false" | ||
}, | ||
{ | ||
"icon-name": "icon-cone", | ||
"id": "nav-item-ic-vert-3", | ||
"class": false, | ||
"title": "Longer label for nav item #3", | ||
"tabContentId": "tabContent3", | ||
"selected": "false" | ||
}, | ||
{ | ||
"icon-name": "icon-cone", | ||
"id": "nav-item-ic-vert-4", | ||
"class": "disabled", | ||
"title": "Nav item #4", | ||
"tabContentId": "tabContent4", | ||
"isDisabled": true | ||
} | ||
] | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<nav class="nav-tabs {{navTabsClass}}" aria-label="Nav label" orientation="{{orientation}}"> | ||
{{# inContainer}} | ||
<div class="container"> | ||
{{/ inContainer}} | ||
<ul class="nav {{orientationClass}}" role="tablist"> | ||
{{# navTabs.navItem }} | ||
<li class="nav-item {{liClass}}"> | ||
<button type="button" class="nav-link {{class}}" role="tab" id={{id}} data-toggle="tab" aria-controls={{tabContentId}} {{#isDisabled}}tabindex="-1" aria-disabled="true"{{/ isDisabled}}{{#selected}} aria-selected="{{selected}}"{{/ selected}}>{{# icon-name}}{{> styles-icon-item }}{{/ icon-name}}{{ title }}</button> | ||
</li> | ||
{{/ navTabs.navItem }} | ||
</ul> | ||
{{# inContainer}} | ||
</div> | ||
{{/ inContainer}} | ||
</nav> |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.