WebAIM - Web Accessibility In Mind

E-mail List Archives

Thread: Exposing the selected state of buttons

for

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

From: Sudheer Babu
Date: Fri, Nov 22 2019 2:50AM
Subject: Exposing the selected state of buttons
No previous message | Next message →

--00000000000073d9e80597ec58b1
Content-Type: text/plain; charset="UTF-8"

Hi All,

In one of our application, we have navigation list in the header which
contains buttons and selecting any button shows the relevant content as per
the selection and the button will be shown in selected state.
Here's the visual layout of it
[image: image.png]

Now, please help me with the appropriate aria attributes to be used to make
the screen reader announce the selected state of these buttons.

<li class="main-navbar__link">
<button onclick="buttonClick(event, 'action1')" class="main-navbar__button
main-navbar__button-- main-navbar__button--complete">
<img class="main-navbar__button-icon" src="
https://icon-library.net/icon/icon-svg-27.html" alt="icon1">Button1</button>
</li>

Appreciate your help on this matter!

Thanks,
Sudheer

--00000000000073d9e80597ec58b1
Content-Type: image/png; name="image.png"
Content-Disposition: inline; filename="image.png"
Content-Transfer-Encoding: base64
Content-ID: <ii_k39ynojf0>
X-Attachment-Id: ii_k39ynojf0

iVBORw0KGgoAAAANSUhEUgAAAsUAAAEYCAYAAAC0g4t0AAAgAElEQVR4Ae3dCXviNt/v8R+LgYBZ
s8wkk5m2c57rfv+vp+c87d1plknY1wA2cC4ZDCQhe4I1yZdeUwjYlvwRwn/Lkhwbj8cz8UAAAQQQ
QAABBBBA4AMLxD/wvrPrCCCAAAIIIIAAAggEAgTFfBEQQAABBBBAAAEEPrwAQfGH/woAgAACCCCA
AAIIIEBQzHcAAQQQQAABBBBA4MMLEBR/+K8AAAgggAACCCCAAAIExXwHEEAAAQQQQAABBD68AEHx
h/8KAIAAAggggAACCCBAUMx3AAEEEEAAAQQQQODDCxAUf/ivAAAIIIAAAggggAACBMV8BxBAAAEE
EEAAAQQ+vABB8Yf/CgCAAAIIIIAAAgggQFDMdwABBBBAAAEEEEDgwwsQFH/4rwAACCCAAAIIIIAA
AgTFfAcQQAABBBBAAAEEPrwAQfGH/woAgAACCCCAAAIIIEB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Q
QAABBBBAAAHbBAiKbSsR8oMAAggggAACCCCwdQGC4q2TkyACCCCAAAIIIICAbQIExbaVCPlBAAEE
EEAAAQQQ2LoAQfHWyUkQAQQQQAABBBBAwDYBgmLbSoT8IIAAAggggAACCGxdgKB46+QkiAACCCCA
AAIIIGCbAEGxbSVCfhBAAAEEEEAAAQS2LkBQvHVyEkQAAQQQQAABBBCwTYCg2LYSIT8IIIAAAggg
gAACWxcgKN46OQkigAACCCCAAAII2CZAUGxbiZAfBBBAAAEEEEAAga0LEBRvnZwEEUAAAQQQQAAB
BGwTICi2rUTIDwIIIIAAAggggMDWBZLbTrHT6Ww7SdJD4JcQKBQKv0Q+ySQCCCCAAALvUYCW4vdY
quwTAggggAACCCCAwJMEtt5SbHJXKpWUSCSelFEWRuC9CkwmE7Varfe6e+wXAggggAACv4QALcW/
RDGRSQQQQAABBBBAAIG3FCAofktdto0AAggggAACCCDwSwgQFP8SxUQmEUAAAQQQQAABBN5SgKD4
LXXZNgIIIIAAAggggMAvIUBQ/EsUE5lEAAEEEEAAAQQQeEsBguK31GXbCCCAAAIIIIAAAr+EAEHx
L1FMZBIBBBBAAAEEEEDgLQUIit9Sl20jgAACCCCAAAII/BIC/x9nm5qOILIMrgAAAABJRU5ErkJg
gg==
--00000000000073d9e80597ec58b1--

From: Patrick H. Lauke
Date: Fri, Nov 22 2019 2:58AM
Subject: Re: Exposing the selected state of buttons
← Previous message | Next message →

On 22/11/2019 09:50, Sudheer Babu wrote:
[...]
> Now, please help me with the appropriate aria attributes to be used to make
> the screen reader announce the selected state of these buttons.

aria-selected="true"

--
Patrick H. Lauke

www.splintered.co.uk | https://github.com/patrickhlauke
http://flickr.com/photos/redux/ | http://redux.deviantart.com
twitter: @patrick_h_lauke | skype: patrick_h_lauke

From: Patrick H. Lauke
Date: Fri, Nov 22 2019 2:59AM
Subject: Re: Exposing the selected state of buttons
← Previous message | Next message →

On 22/11/2019 09:58, Patrick H. Lauke wrote:
> On 22/11/2019 09:50, Sudheer Babu wrote:
> [...]
>> Now, please help me with the appropriate aria attributes to be used to
>> make
>> the screen reader announce the selected state of these buttons.
>
> aria-selected="true"
>

Actually, goodness...I need more coffee this morning.

aria-pressed="true"

--
Patrick H. Lauke

www.splintered.co.uk | https://github.com/patrickhlauke
http://flickr.com/photos/redux/ | http://redux.deviantart.com
twitter: @patrick_h_lauke | skype: patrick_h_lauke

From: Srinivasu Chakravarthula
Date: Fri, Nov 22 2019 3:00AM
Subject: Re: Exposing the selected state of buttons
← Previous message | Next message →

Hello Sudheer,
Are you using a <tabpanle> for this? if so, you can expose state for
selected tab. If you are using navigation mark-up, I think you can think of
using "current" role.

Regards,

Srinivasu Chakravarthula - Twitter: http://twitter.com/CSrinivasu/
Website: http://www.srinivasu.org | http://serveominclusion.com

Let's create an inclusive web!

Senior Accessibility Program Manager, Watermark


On Fri, Nov 22, 2019 at 3:20 PM Sudheer Babu < = EMAIL ADDRESS REMOVED = > wrote:

> Hi All,
>
> In one of our application, we have navigation list in the header which
> contains buttons and selecting any button shows the relevant content as per
> the selection and the button will be shown in selected state.
> Here's the visual layout of it
> [image: image.png]
>
> Now, please help me with the appropriate aria attributes to be used to make
> the screen reader announce the selected state of these buttons.
>
> <li class="main-navbar__link">
> <button onclick="buttonClick(event, 'action1')" class="main-navbar__button
> main-navbar__button-- main-navbar__button--complete">
> <img class="main-navbar__button-icon" src="
> https://icon-library.net/icon/icon-svg-27.html"
> alt="icon1">Button1</button>
> </li>
>
> Appreciate your help on this matter!
>
> Thanks,
> Sudheer
> > > > >

From: Sudheer Babu
Date: Fri, Nov 22 2019 3:13AM
Subject: Re: Exposing the selected state of buttons
← Previous message | Next message →

@Srinivasu, no tabpanel role is used, aria-current is the one I'm thinking
too. But, seems like NVDA is not announcing the aria-current in Browse mode
and announces it as current only in Focus mode, am I missing anything?

@Patrick - doesn't the aria-pressed make the screen reader announced the
button as "toggle button"?

btw, thanks for your answers really appreciate it!

On Fri, Nov 22, 2019 at 3:31 PM Srinivasu Chakravarthula <
= EMAIL ADDRESS REMOVED = > wrote:

> Hello Sudheer,
> Are you using a <tabpanle> for this? if so, you can expose state for
> selected tab. If you are using navigation mark-up, I think you can think of
> using "current" role.
>
> Regards,
>
> Srinivasu Chakravarthula - Twitter: http://twitter.com/CSrinivasu/
> Website: http://www.srinivasu.org | http://serveominclusion.com
>
> Let's create an inclusive web!
>
> Senior Accessibility Program Manager, Watermark
>
>
> On Fri, Nov 22, 2019 at 3:20 PM Sudheer Babu < = EMAIL ADDRESS REMOVED = > wrote:
>
> > Hi All,
> >
> > In one of our application, we have navigation list in the header which
> > contains buttons and selecting any button shows the relevant content as
> per
> > the selection and the button will be shown in selected state.
> > Here's the visual layout of it
> > [image: image.png]
> >
> > Now, please help me with the appropriate aria attributes to be used to
> make
> > the screen reader announce the selected state of these buttons.
> >
> > <li class="main-navbar__link">
> > <button onclick="buttonClick(event, 'action1')"
> class="main-navbar__button
> > main-navbar__button-- main-navbar__button--complete">
> > <img class="main-navbar__button-icon" src="
> > https://icon-library.net/icon/icon-svg-27.html"
> > alt="icon1">Button1</button>
> > </li>
> >
> > Appreciate your help on this matter!
> >
> > Thanks,
> > Sudheer
> > > > > > > > > >
> > > > >

From: Detlev Fischer
Date: Fri, Nov 22 2019 3:15AM
Subject: Re: Exposing the selected state of buttons
← Previous message | Next message →

It is possible that I am missing something but a quick test seems to
indicate that on <button>, aria-pressed is better supported than
aria-selected.

See
http://3needs.org/en/testing/code/button-states.html

In NVDA,
- IE will render both (selected / pressed)
- Firefox will just render pressed
- Chrome will just render pressed
- Edge ( 42.17134.1038.0) will just render pressed

Detlev

Am 22.11.2019 um 10:58 schrieb Patrick H. Lauke:
> On 22/11/2019 09:50, Sudheer Babu wrote:
> [...]
>> Now, please help me with the appropriate aria attributes to be used
>> to make
>> the screen reader announce the selected state of these buttons.
>
> aria-selected="true"
>

--
Detlev Fischer
Testkreis
Werderstr. 34, 20144 Hamburg

Mobil +49 (0)157 57 57 57 45

http://www.testkreis.de
Beratung, Tests und Schulungen für barrierefreie Websites

From: Sudheer Babu
Date: Fri, Nov 22 2019 3:19AM
Subject: Re: Exposing the selected state of buttons
← Previous message | Next message →

Thanks Detlev!, you are right..Aria-selected works well on tab panels
aria-pressed seems to be working fine but just don't want the button to be
announced as "toggle buttons"

On Fri, Nov 22, 2019 at 3:45 PM Detlev Fischer < = EMAIL ADDRESS REMOVED = >
wrote:

> It is possible that I am missing something but a quick test seems to
> indicate that on <button>, aria-pressed is better supported than
> aria-selected.
>
> See
> http://3needs.org/en/testing/code/button-states.html
>
> In NVDA,
> - IE will render both (selected / pressed)
> - Firefox will just render pressed
> - Chrome will just render pressed
> - Edge ( 42.17134.1038.0) will just render pressed
>
> Detlev
>
> Am 22.11.2019 um 10:58 schrieb Patrick H. Lauke:
> > On 22/11/2019 09:50, Sudheer Babu wrote:
> > [...]
> >> Now, please help me with the appropriate aria attributes to be used
> >> to make
> >> the screen reader announce the selected state of these buttons.
> >
> > aria-selected="true"
> >
>
> --
> Detlev Fischer
> Testkreis
> Werderstr. 34, 20144 Hamburg
>
> Mobil +49 (0)157 57 57 57 45
>
> http://www.testkreis.de
> Beratung, Tests und Schulungen für barrierefreie Websites
>
> > > > >

From: Aditya
Date: Fri, Nov 22 2019 5:38AM
Subject: Re: Exposing the selected state of buttons
← Previous message | Next message →

Sudheer,

If the buttons have a stare change after activation and only one button is selected at a time, it makes the tabs.

Ex:
<div role=tabpanel>
<button id =tab1 role=tab aria-selected=true aria-controls=id_tabpanel>
...more tabs....
</div >


Sent from my iPhone

> On Nov 22, 2019, at 4:19 AM, Sudheer Babu < = EMAIL ADDRESS REMOVED = > wrote:
>
> Thanks Detlev!, you are right..Aria-selected works well on tab panels
> aria-pressed seems to be working fine but just don't want the button to be
> announced as "toggle buttons"
>
> On Fri, Nov 22, 2019 at 3:45 PM Detlev Fischer < = EMAIL ADDRESS REMOVED = >
> wrote:
>
>> It is possible that I am missing something but a quick test seems to
>> indicate that on <button>, aria-pressed is better supported than
>> aria-selected.
>>
>> See
>> http://3needs.org/en/testing/code/button-states.html
>>
>> In NVDA,
>> - IE will render both (selected / pressed)
>> - Firefox will just render pressed
>> - Chrome will just render pressed
>> - Edge ( 42.17134.1038.0) will just render pressed
>>
>> Detlev
>>
>>> Am 22.11.2019 um 10:58 schrieb Patrick H. Lauke:
>>>> On 22/11/2019 09:50, Sudheer Babu wrote:
>>>> [...]
>>>> Now, please help me with the appropriate aria attributes to be used
>>>> to make
>>>> the screen reader announce the selected state of these buttons.
>>>
>>> aria-selected="true"
>>>
>>
>> --
>> Detlev Fischer
>> Testkreis
>> Werderstr. 34, 20144 Hamburg
>>
>> Mobil +49 (0)157 57 57 57 45
>>
>> http://www.testkreis.de
>> Beratung, Tests und Schulungen für barrierefreie Websites
>>
>> >> >> >> >>
> > > >

From: Mark Magennis
Date: Mon, Dec 09 2019 5:07AM
Subject: Re: [EXTERNAL]Exposing the selected state of buttons
← Previous message | Next message →

Sudheer,

Be particularly careful if any of your users are likely to be using IE11. aria-pressed hardly works in IE11. JAWS reads the state only when aria-pressed=true, not when it is false, and doesn't announce state changes (when you press the button). NVDA only reads the state and announces state changes when aria-pressed=true, not false.

JAWS/Firefox doesn't work well either. Like NVDA/IE11, it only reads the state and announces state changes when aria-pressed=true, not false. I haven't looked to see what happens in Chrome.

For these reasons, my company's Toggle Button coding pattern doesn't use aria-pressed. There are other ways to reliably give a similar experience. A pity, because aria-pressed should be perfect for toggle buttons.

Mark

Mark Magennis
Skillsoft | mobile: +353 87 60 60 162
Accessibility Specialist


From: Birkir R. Gunnarsson
Date: Mon, Dec 09 2019 6:50AM
Subject: Re: [EXTERNAL]Exposing the selected state of buttons
← Previous message | Next message →

IE11 can't be helped I think, the browser is no longer being updated.
For the rest, we need to file issues, this pattern needs to be
supported going forward.


On 12/9/19, Mark Magennis < = EMAIL ADDRESS REMOVED = > wrote:
> Sudheer,
>
> Be particularly careful if any of your users are likely to be using IE11.
> aria-pressed hardly works in IE11. JAWS reads the state only when
> aria-pressed=true, not when it is false, and doesn't announce state changes
> (when you press the button). NVDA only reads the state and announces state
> changes when aria-pressed=true, not false.
>
> JAWS/Firefox doesn't work well either. Like NVDA/IE11, it only reads the
> state and announces state changes when aria-pressed=true, not false. I
> haven't looked to see what happens in Chrome.
>
> For these reasons, my company's Toggle Button coding pattern doesn't use
> aria-pressed. There are other ways to reliably give a similar experience. A
> pity, because aria-pressed should be perfect for toggle buttons.
>
> Mark
>
> Mark Magennis
> Skillsoft | mobile: +353 87 60 60 162
> Accessibility Specialist
>
>
>

From: glen walker
Date: Mon, Dec 09 2019 8:47AM
Subject: Re: [EXTERNAL]Exposing the selected state of buttons
← Previous message | Next message →

Whether one works better than the other (aria-selected vs aria-pressed),
make sure you understand which attribute is allowed based on the role of
the element.

https://www.w3.org/TR/html53/dom.html#allowed-aria-roles-states-and-properties

As Patrick alluded to in the first response to this question last month, he
originally said aria-selected but then quickly fixed that to aria-pressed.
If you look at the table in the URL given above and navigate down to the
"button" row, you'll see aria-expanded and aria-pressed (in addition to
global ARIA attributes) are the only ones allowed on a button.

As far as which browser/screen reader combinations it works on, absolutely
follow Birkir's advice and file issues if it doesn't work.

From: Mark Magennis
Date: Mon, Dec 09 2019 9:23AM
Subject: Re: [EXTERNAL]Exposing the selected state of buttons
← Previous message | Next message →

Birkir,

I'm afraid I'm one of these lazy people who grumble about defects but never file them as issues. You've prompted me to change my ways. Could you tell me, where do I file issues with JAWS, NVDA, and VoiceOver? And presumably if I find thst the defect is in the accessibility tree, I should file it against the browser? Where do I do that for Firefox, Chrome, and Safari?

I know there's no point in filing issues against IE11 but is it possible to view its accessibility tree? Does it even have one?

Mark

Mark Magennis
Skillsoft | mobile: +353 87 60 60 162
Accessibility Specialist


From: Patrick H. Lauke
Date: Mon, Dec 09 2019 9:57AM
Subject: Re: [EXTERNAL]Exposing the selected state of buttons
← Previous message | Next message →

On 09/12/2019 16:23, Mark Magennis wrote:
> Birkir,
>
> I'm afraid I'm one of these lazy people who grumble about defects but never file them as issues. You've prompted me to change my ways. Could you tell me, where do I file issues with JAWS, NVDA, and VoiceOver?

https://github.com/FreedomScientific/VFO-standards-support/issues
https://github.com/nvaccess/nvda/issues
https://bugs.webkit.org/

> And presumably if I find thst the defect is in the accessibility tree, I should file it against the browser? Where do I do that for Firefox, Chrome, and Safari?

https://developer.paciellogroup.com/blog/2014/06/filing-bugs/

> I know there's no point in filing issues against IE11 but is it possible to view its accessibility tree? Does it even have one?

While a bit out of date, you could use something like aViewer to see
what IE11 exposes https://developer.paciellogroup.com/resources/aviewer/

P
--
Patrick H. Lauke

www.splintered.co.uk | https://github.com/patrickhlauke
http://flickr.com/photos/redux/ | http://redux.deviantart.com
twitter: @patrick_h_lauke | skype: patrick_h_lauke

From: Mark Magennis
Date: Mon, Dec 09 2019 10:56AM
Subject: Re: [EXTERNAL]Exposing the selected state of buttons
← Previous message | Next message →

Thanks Patrick.

Mark

Mark Magennis
Skillsoft | mobile: +353 87 60 60 162
Accessibility Specialist


From: Birkir R. Gunnarsson
Date: Mon, Dec 09 2019 1:54PM
Subject: Re: [EXTERNAL]Exposing the selected state of buttons
← Previous message | No next message

Thanks Patrick ;)


On 12/9/19, Mark Magennis < = EMAIL ADDRESS REMOVED = > wrote:
> Thanks Patrick.
>
> Mark
>
> Mark Magennis
> Skillsoft | mobile: +353 87 60 60 162
> Accessibility Specialist
>
>
>