minor updates to make the old price more accessible. Swapped price block to be a paragraph rather than div, wrapped old price in del tags, and added aria-lablel explaining that 169.99 was the old price

This commit is contained in:
Robert McGovern 2022-10-10 14:58:57 +01:00
parent 6d84eb2185
commit 7b0b8f2dc6
2 changed files with 14 additions and 6 deletions

View File

@ -169,6 +169,14 @@ body {
color: var(--col-price-old);
}
/* I tried using this but wasn't picked up in Safari / VoiceOver on macOS
product-card__price-old::before {
content: "Old pricing was ";
}
*/
.product-card__button-buy {
font-family: var(--ff-button);
font-size: var(--fs-button);

View File

@ -55,14 +55,14 @@
A floral, solar and voluptuous interpretation composed by Olivier Polge,
Perfumer-Creator for the House of CHANEL.
</p>
<div class="product-card__price-block">
<div class="product-card__price-current">
<p class="product-card__price-block">
<span class="product-card__price-current">
$149.99
</div>
<div class="product-card__price-old">
</span>
<del class="product-card__price-old" aria-label="The old price was $169.99">
$169.99
</div>
</div>
</del>
</p>
<button class="product-card__button-buy">
<svg width="15" height="16" xmlns="http://www.w3.org/2000/svg" fill="currentColor">