This is a migrated thread and some comments may be shown as answers.

WAI-ARIA: Can I assign roles to the RadPanelBar

2 Answers 40 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
A
Top achievements
Rank 1
A asked on 19 Sep 2016, 07:51 PM

I may be configured something wrong, but after enabling ARIA support on the RadPanelBar all I can see is that the items are rendered with a role="tab".

Shouldn't the RadPanelBar itself be rendered with a role="tabstrip" attribute?

Actually, in the project I'm assigned to, the RadPanelBar is used as a means of navigation - it's bound to the SiteMapDataSource. So I'd like to change the RadPanelBar's role to "navigation". How can I do this?

Your answers are appreciated.

2 Answers, 1 is accepted

Sort by
0
Accepted
Plamen
Telerik team
answered on 22 Sep 2016, 07:47 AM
Hello,

Thank you for reporting this issue.

You are right it should have  role of tablist. We will fix this as soon as possible.

As for your second question we have implemented the WAI-ARIA support of RadPanelBar according to the w3 specification of the accordion which is a similar control and that is why changing the role to some other is a custom solution that is not supported by the control.


Regards,
Plamen
Telerik by Progress
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
0
A
Top achievements
Rank 1
answered on 23 Sep 2016, 12:26 PM

Excellent.

You are right: giving it a second thought I can - I even need to - surround the RadPanelBar with a <div role="navigation"> element myself. Since assigning two roles to the same element drops all roles except the rightmost one, surrounding the RadPanelBar with a landmark <div> can easily be done manually.

Thanks for updating the RadPanelBar with an upcoming version!

Tags
PanelBar
Asked by
A
Top achievements
Rank 1
Answers by
Plamen
Telerik team
A
Top achievements
Rank 1
Share this question
or