Orange navbar
Orange specific navbar used for Orange portal.
How it works
Orange navbar is based on the navbar component. It adds some display management and introduces the supra bar component.
Main navbar
Orange navbar is the main navigation of project website. It should always be included in a <header role="banner">
tag.
Using icons as links is possible, be sure to add the .icon
class to the .nav-link
element for proper alignement.
Supra bar
Another navigation can be added on top of orange navbar, it is called supar bar. Simply add the .supra
class in you navbar declaration.
This navbar is visible only on desktop view.
A supra bar should never be used on its own and always be included in header and with the regular navbar, which gives :
Full example
Options
Using javascript your can initialize the navbar component with the following options :
Name |
Type |
Default |
Description |
sticky |
boolean |
false |
Tells wether or not the navbar should stick to the top of page |
hideSupra |
boolean |
false |
Hides the supra bar on page scroll. Show when scroll to top. |
Usage
Using javascript, simply declare your navbar component with the needed options.
See a full implementation in the Orange News example page