Navs

Demonstration
Code

Navs are related collections of links, buttons, or other utilities. They always use the nav element. In the Opportunity Standard they can either be inlined in a row or stacked on top of each other as a Block Nav.


Each nav element must have a unique aria-label attribute to help screen readers distinguish them from other nav elements. Common nav labels in the Opportunity Standard include;

Demonstration
Code

Block Nav elements are stacked on top of each other.


Block and Inline nav layouts can be swapped out using responsive utility prefix; small:, mobile:, tablet:, or desktop:. For example, nav-block tablet:nav-inline will display the nav as block for smaller viewports and inline for viewports larger than a tablet.