Pop-ups
A pop-up is a component that displays content in a view at the bottom right corner of the page. Users can minimize and close the popup.
Example
Popup Title
Lorem Ipsum
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse luctus ornare augue, sed varius tortor posuere vitae. Proin vel quam et lectus imperdiet rutrum quis at risus. Praesent non ante vitae lectus lobortis vestibulum sit amet a lacus. Fusce quam erat, molestie vel cursus semper, rutrum eu nibh. Etiam condimentum efficitur bibendum. Quisque vel ex elit. Morbi fringilla, lectus quis sagittis porttitor, urna neque pretium lacus, sed condimentum mi dui ac nulla. Maecenas dictum interdum est, sit amet lobortis mi rhoncus vitae. Vivamus id finibus tellus. Aliquam erat volutpat.
<button class="sba-c-button new-popup">New Note</button>
<div class="sba-c-popup">
<a href="#" id="sba-c-popup-toggle" class="sba-c-popup__toggle">
<header class="sba-c-popup__header">
<h4 class="sba-c-popup__heading">New SBA Note</h4>
<button type="button" id="sba-c-popup-close" class="sba-c-popup__close"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="/certify-design-system-documentation/assets/svg-sprite/sprite.svg#white-x"></use>Close</button>
</header>
</a>
<div class="sba-l-container sba-c-popup__contents">
[CONTENT]
</div>
</div>
Guidance
- The pop-up component has not yet been tested on mobile.
- The pop-up area is scrollable.
- Clicking the header will toggle the visibility of the content area in the popup, maintaining the state of the contents and scroll position.
- Clicking the close button will hide the entire pop-up view.