Skip to content

Instantly share code, notes, and snippets.

@fcsonline
Created December 2, 2016 12:00
Show Gist options
  • Save fcsonline/4284bb1aaf638ed8e26b0a8b5ec421ce to your computer and use it in GitHub Desktop.
Save fcsonline/4284bb1aaf638ed8e26b0a8b5ec421ce to your computer and use it in GitHub Desktop.
Cart - Markup
<ul>
<li>
<div>
<header>Item 1</header>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing.</p>
<button>Remove from cart</button>
</div>
</li>
<li class="selected"> <!-- More clear responsibilities (SelectList) -->
<div class="premium"> <!-- More clear responsibilities (CartItem) -->
<header>Item 2</header>
<p>Fusce vel neque sit amet felis fermentum cursus vitae.</p>
<button>Remove from cart</button>
</div>
</li>
<li class="selected">
<div>
<header>Item 3</header>
<p>Vel neque sit amet vitae suscipit nibh.</p>
<button>Remove from cart</button>
</div>
</li>
</ul>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment