High Value Card
<div style="max-width: 400px">
<div class="card">
<div aria-label="high" class="corner-tag high">
<div class="corner-tag-value">7.6</div>
</div>
<p>High Value Card</p>
</div>
</div>
Medium Value Card
<div style="max-width: 400px">
<div class="card">
<div aria-label="medium" class="corner-tag medium">
<div class="corner-tag-value">5.5</div>
</div>
<p>Medium Value Card</p>
</div>
</div>
Low Value Card
<div style="max-width: 400px">
<div class="card">
<div aria-label="low" class="corner-tag low">
<div class="corner-tag-value">3.5</div>
</div>
<p>Low Value Card</p>
</div>
</div>
The quality-tag
component will determine the corner tag to add (either high, medium, or low) based on the score
value passed. The range for these is:
See quality_tag.js to view the code for this logic.
Card with Quality Tag as Web Component
<div style="max-width: 400px">
<div class="card">
<quality-tag score="2.5"></quality-tag>
<p>Card with Quality Tag as Web Component</p>
</div>
</div>