Further Reading
Further Reading
If your button links to another page, use the anchor element.
<a href=""></a>
If your button submits a form, use the input element.
<input type="submit"></input>
If your button controls interaction within a page, use the button element with appropriate ARIA roles or states.
<button aria-pressed="false"></button>
Button wrapper that represents self-contained content.
<button class="btn"></button>
Span wrapper that represents self-contained content.
<span class="btn-span">Button Copy</span>
<!-- Primary -->
<button class="btn btn--lightbg">Primary Button</button>
<button class="btn btn--lightbg icon--play">Primary Button with Icon</button>
<button class="btn btn--lightbg" disabled>Primary Button Disabled</button>
<!-- Primary (Dark Background) -->
<div class="ucla-blue">
<button class="btn btn--darkbg">Primary Dark Background button</button>
<button class="btn btn--darkbg icon--play">Primary Dark Background Btn with Icon</button>
<button class="btn btn--darkbg" disabled>Primary Dark Background Btn Disabled</button>
</div>
<!-- Secondary -->
<button class="btn btn--secondary">Secondary Button</button>
<button class="btn btn--secondary icon--play">Secondary with Icon</button>
<button class="btn btn--secondary" disabled>Secondary Disabled</button>
<!-- Tertiary -->
<button class="btn btn--tertiary">Tertiary Button</button>
<button class="btn btn--tertiary icon--play">Tertiary with Icon</button>
<button class="btn btn--tertiary" disabled>Tertiary Disabled</button>
<!-- Button Group -->
<div class="btn--group">
<button class="btn btn--group-left">Group - Left (Req)</button>
<button class="btn btn--group-center">Group - Center (Optional)</button>
<button class="btn btn--group-right">Group - Right (Req)</button>
</div>
<!-- Button Group (Disabled) -->
<div class="btn--group">
<button class="btn btn--group-left" disabled>Group - Disabled Left (Req)</button>
<button class="btn btn--group-center" disabled>Group - Disabled Center (Optional)</button>
<button class="btn btn--group-right" disabled>Group - Disabled Right (Req)</button>
</div>
<div class="ucla">
<!-- Related Links -->
<ul class="related-links">
<li><a href="#">This is an Internal Link</a></li>
<li><a class="related-links--external" href="#">This is an External Link</a></li>
<li><a class="related-links--download" href="#">This is a Link to a Download (PDF)</a></li>
</ul>
</div>
<div class="ucla">
<!-- Inline Link (Light Background) -->
<p>
This is an example of an <a href="#">inline</a> link on light background.
</p>
<!-- Inline Link (Dark Background) -->
<p style="background: #2774AE; color: white;">
This is an example of an <a class="white-link" href="#">inline</a> link on dark background.
</p>
<br>
</div>
<!-- Pagination (Boxed) -->
<ul class="pagination--boxed">
<li><a class="page" href="#">«</a></li>
<li><a class="page page--current" href="#">1</a></li>
<li><a class="page" href="#">2</a></li>
<li><a class="page" href="#">3</a></li>
<li><a class="page" href="#">4</a></li>
<li><a class="page" href="#">5</a></li>
<li><a class="page" href="#">6</a></li>
<li><a class="page" href="#">7</a></li>
<li><a class="page" href="#">»</a></li>
</ul>
<!-- Pagination (Unboxed) -->
<ul class="pagination">
<li><a class="page" href="#">«</a></li>
<li><a class="page page--current" href="#">1</a></li>
<li><a class="page" href="#">2</a></li>
<li><a class="page" href="#">3</a></li>
<li><a class="page" href="#">4</a></li>
<li><a class="page" href="#">5</a></li>
<li><a class="page" href="#">6</a></li>
<li><a class="page" href="#">7</a></li>
<li><a class="page" href="#">»</a></li>
</ul>