Portal Tab Styles
Best Practice
Appropriately interruptive
Alert flags interrupt the user. The urgency of the content contained in an alert must match the level of interruption caused and the context of the alert.
Focused
Only one message is contained in each alert. Information is succinct and clear. Users can easily interpret how to interact with the alert flag.
Dismissing banners
An alert remains on the screen until the user dismisses it.
Code
Alert Styles
Error Alert
Error Text example. This is an example of an error warning that falls over two or more lines.
<div class="tab tab--col-2"> <div class="tab__item"> <div class="tab__heading" id="tab1id" role="button" aria-expanded="false" aria-controls="sect1" tabindex="0"> <h3 class="h5">Heading</h3> <i class="icon icon--plusminus"></i> </div> <div class="tab__body" id="sect1" role="region" aria-labelledby="tab1id" tabindex="-1"> <p>These days employability is not just about what you know, but in creasingly, what you can do and how adaptable you are.</p> <p>At Macquarie we provide innovative opportunities to build on your academic studies with authentic workplace experiences.</p> <p>Our multi award-winning PACE program is for all undergraduate students and is a vital part of your career preparation.</p> </div> </div> <div class="tab__item"> <div class="tab__heading" id="tab2id" role="button" aria-expanded="false" aria-controls="sect2" tabindex="0"> <h3 class="h5">Heading</h3> <i class="icon icon--plusminus"></i> </div> <div class="tab__body" id="sect2" role="region" aria-labelledby="tab2id" tabindex="-1"> <p>Morbi sed quam sit amet ipsum venenatis gravida. Suspendisse pulvinar viverra vestibulum. Maecenas ultricies imperdiet nulla, id tristique sapien venenatis sit amet.</p> </div> </div> </div>
Tab Documentation
Use
Minimum tabs is 2, maximum is 4. Must set the tab number using the mx--tab--col-{ TAB NUMBER } class
Tab headings should be one word in length.
Never nest an accordion within a tab