WebAIM - Web Accessibility In Mind

E-mail List Archives

Thread: Handling del text

for

Number of posts in this thread: 4 (In chronological order)

From: Alastair Campbell
Date: Mon, Nov 04 2013 7:10AM
Subject: Handling del text
No previous message | Next message →

Hi,

I've got that classic situation of showing the previous and current price.

Visually the first price is crossed out, and the current price is bold.

The developer did the obvious (and correct?) thing of:
<del>£50</del> <strong>£30</strong>

That's fine for most people, but it seems that generally screen readers
won't give any indicator that the second price is the most relevant.

I'm left with recommending either hidden text, or possibly using
role="presentation" on the <del>.

Is that still the current state of play? I had a look through the aria
roles list but nothing jumped out as suitable for this scenario, even if it
were reliable to use.

Cheers,

-Alastair

From: Cameron Cundiff
Date: Mon, Nov 04 2013 8:59AM
Subject: Re: Handling del text
← Previous message | Next message →

Alistair, how about an <em> or <strong> tag around the new price to elicit
a tone change in the screen reader?


On Mon, Nov 4, 2013 at 9:10 AM, Alastair Campbell < = EMAIL ADDRESS REMOVED = > wrote:

> Hi,
>
> I've got that classic situation of showing the previous and current price.
>
> Visually the first price is crossed out, and the current price is bold.
>
> The developer did the obvious (and correct?) thing of:
> <del>£50</del> <strong>£30</strong>
>
> That's fine for most people, but it seems that generally screen readers
> won't give any indicator that the second price is the most relevant.
>
> I'm left with recommending either hidden text, or possibly using
> role="presentation" on the <del>.
>
> Is that still the current state of play? I had a look through the aria
> roles list but nothing jumped out as suitable for this scenario, even if it
> were reliable to use.
>
> Cheers,
>
> -Alastair
> > > >

From: Steve Faulkner
Date: Mon, Nov 04 2013 9:04AM
Subject: Re: Handling del text
← Previous message | Next message →

@Alastair,

aria-hidden would be the one, role=presentation will only remove role from
del and as del role is not exposed anyway...

@Cameron,

see this post from 2008
http://blog.paciellogroup.com/2008/02/screen-readers-lack-emphasis/

the situation is much the same today, semantics of most text level elements
not exposed via accessibility APIs


--

Regards

SteveF
HTML 5.1 <http://www.w3.org/html/wg/drafts/html/master/>;


On 4 November 2013 15:59, Cameron Cundiff < = EMAIL ADDRESS REMOVED = > wrote:

> Alistair, how about an <em> or <strong> tag around the new price to elicit
> a tone change in the screen reader?
>
>
> On Mon, Nov 4, 2013 at 9:10 AM, Alastair Campbell < = EMAIL ADDRESS REMOVED = >
> wrote:
>
> > Hi,
> >
> > I've got that classic situation of showing the previous and current
> price.
> >
> > Visually the first price is crossed out, and the current price is bold.
> >
> > The developer did the obvious (and correct?) thing of:
> > <del>£50</del> <strong>£30</strong>
> >
> > That's fine for most people, but it seems that generally screen readers
> > won't give any indicator that the second price is the most relevant.
> >
> > I'm left with recommending either hidden text, or possibly using
> > role="presentation" on the <del>.
> >
> > Is that still the current state of play? I had a look through the aria
> > roles list but nothing jumped out as suitable for this scenario, even if
> it
> > were reliable to use.
> >
> > Cheers,
> >
> > -Alastair
> > > > > > > >
> > > >

From: Alastair Campbell
Date: Mon, Nov 04 2013 2:13PM
Subject: Re: Handling del text
← Previous message | No next message

Steve Faulkner wrote:

> aria-hidden would be the one, role=presentation will only remove role from
> del and as del role is not exposed anyway...
>

Ach, yes, of course. Sorry, I'd been using presentation for something else
and had it on the brain, thank you.

@Cameron: You would think, but the most change I've seen from inline
elements is a pause.

Admittedly it would be difficult to get consistent meaning from a
voice/tone change, you can already get changes for form-elements and
capitalisation, and even when seeing the page it took a little while to
work out what they meant.

Thanks,

-Alastair