Last active
October 24, 2024 17:13
-
-
Save caseywatts/fabbde1f67a83d6aa7f1e5294c288678 to your computer and use it in GitHub Desktop.
Web Component Before/After Example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Before --> | |
<div class="usa-site-alert usa-site-alert--emergency"> | |
<div class="usa-alert"> | |
<div class="usa-alert__body"> | |
<h4 class="usa-alert__heading">Emergency Status</h4> | |
<p class="usa-alert__text"> Lorem ipsum dolor sit amet, <a href="#">consectetur adipiscing</a> elit, sed do eiusmod. </p> | |
</div> | |
</div> | |
</div> | |
<!-- After --> | |
<maryland-site-alert type="emergency"> | |
<div slot="heading">Emergency Status</div> | |
<div slot="content"> Lorem ipsum dolor sit amet, <a href="#">consectetur adipiscing</a> elit, sed do eiusmod. </div> | |
</maryland-site-alert> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment