Skip to content

Commit

Permalink
Added Screen Reader text
Browse files Browse the repository at this point in the history
  • Loading branch information
tadaly04 committed Dec 13, 2022
1 parent c23fb6e commit d249e12
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ <h1>Gabrielle Essence Eau De Parfum</h1>
Perfumer-Creator for the House of CHANEL.</p>
<div class="price">
<p class="current-price">$149.99</p>
<p class="previous-price">$169.99</p>
<p class="previous-price"><del><span class="sr-only">The previous price is</span>$169.99</del></p>
</div>
<button><span class="uil uil-shopping-cart-alt"></span>Add to Cart</button>
</section>
Expand Down
10 changes: 9 additions & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,15 @@ p {
grid-template-columns: max-content max-content;
margin-top: 1.8rem;
}

.sr-only {
position: absolute;
left: -9999px;
color: transparent;
background-color: transparent;
width: 1px;
height: 1px;
overflow: hidden;
}
.current-price {
color: var(--dark-cyan);
font-family: 'Fraunces', serif;
Expand Down

0 comments on commit d249e12

Please sign in to comment.