In today's episode of web accessibility shit-fuckery: prices for an online shop that are aria-hidden, with "screen reader text" that is display: none, rendering the prices completely inaccessible to screen reader users.
<span class="price"><del aria-hidden="true"><span class="woocommerce-Price-amount amount"><bdi><span class="woocommerce-Price-currencySymbol">$</span>899.00</bdi></span></del> <span class="screen-reader-text">Original price was: $899.00.</span><ins aria-hidden="true"><span class="woocommerce-Price-amount amount"><bdi><span class="woocommerce-Price-currencySymbol">$</span>799.00</bdi></span></ins><span class="screen-reader-text">Current price is: $799.00.</span></span>
(.screen-reader-text is CSS display: none)
<span class="price"><del aria-hidden="true"><span class="woocommerce-Price-amount amount"><bdi><span class="woocommerce-Price-currencySymbol">$</span>899.00</bdi></span></del> <span class="screen-reader-text">Original price was: $899.00.</span><ins aria-hidden="true"><span class="woocommerce-Price-amount amount"><bdi><span class="woocommerce-Price-currencySymbol">$</span>799.00</bdi></span></ins><span class="screen-reader-text">Current price is: $799.00.</span></span>
(.screen-reader-text is CSS display: none)
Zach Bennoui reshared this.
Thomas Kräftner
in reply to Jamie Teh • • •The CSS class screen-reader-text
Make WordPress AccessibleJenni
in reply to Jamie Teh • • •Jamie Teh
in reply to Jenni • • •What I'd personally prefer is that they left the <ins> and <del> alone, since those provide sufficient semantics, and not bothered with screen reader text at all. But in the absence of that (compatibility with screen readers that don't support <ins> and <del> or whatever), not screwing up the style sheet would I suppose be acceptable, although it'd still likely be inaccessible to low vision users using a mouse or any screen reader using explore by touch on a touch screen.
Jenni
in reply to Jamie Teh • • •Which I could only explain to myself by then trying not to simply throw out multiple numbers with little context which then got me to wondering if that would be better than simplifying it down to the final price only.
But from your answer I understand that the del should also be read so that solves that
Jamie Teh
in reply to Jenni • • •Sean Randall
in reply to Jamie Teh • • •Helidonkey
in reply to Jamie Teh • • •Nick's world 🌎 👨🦯 🗽
in reply to Jamie Teh • • •Mikołaj Hołysz
in reply to Jamie Teh • • •Jamie Teh
in reply to Mikołaj Hołysz • • •Mikołaj Hołysz
in reply to Jamie Teh • • •