openui5 icon indicating copy to clipboard operation
openui5 copied to clipboard

Mobile button does not support ariaDescribeBy or ariaLabelledBy associations

Open RalphMarshall opened this issue 12 years ago • 10 comments

The sap.ui.commons.Button component supports adding values to be rendered as aria-describedby and aria-labelledby, but there is no corresponding API for the mobile version of button.

OpenUI5 version: 1.24

Browser/version (+device/version): NA Any other tested browsers/devices(OK/FAIL): NA URL (minimal example if possible):NA

What is the expected result? Calling methods such as addAriaDescribedBy() on a mobile button should add the corresponding control ID to the aria-describedby attribute rendered for that button.

What happens instead? There is no API to do this, and there is no code in the mobile button to write out the ARIA attributes in any case.

Any other information? (attach screenshot if possible)

RalphMarshall avatar Oct 30 '14 17:10 RalphMarshall

Hello Ralph,

thanks for contacting us.

The controls in sap.m do currently not support the aria standard yet because they were originally planned as mobile-only controls. We know about it and will improve on this in a future release.

As you know, the sap.ui.commons controls fully support the above-mentioned methods. If you need controls that support aria you can use these for the moment.

Cheers, Michael

Michadelic avatar Oct 31 '14 06:10 Michadelic

Thanks for the update, Michadelic, but I'm not sure I see how "mobile only" means that aria is not supported, unless I'm interpreting your reasoning incorrectly. We are writing mobile apps and want to use sap.m but to get VoiceOver to work correctly on iPhones and iPads, we need the aria properties. We can't use the sap.ui.commons controls for the mobile app.

Even if a set of controls are designed only for mobile devices, that has no bearing on whether aria properties should be supported.

I suppose if you wanted to write a mobile app that was not accessible, then you don't need aria, but a non-accessible app is highly discouraged.

sasgrw avatar Oct 31 '14 12:10 sasgrw

yes, we know :-) and we are also currently working on the accessibility standards of the controls in the sap.m libary. In the upcoming release there will be improvements in the keyboard navigation and a high contrast theme. Aria is also planned but not implemented yet.

Michadelic avatar Oct 31 '14 12:10 Michadelic

Note also that this is a problem I'm proposing to fix, partly because we have already hacked our way around it in our application, and partly as a test of the overall process of contributing to the open source project. I expect to have a fix ready for review in a few days and will update this when it's ready. Thanks for the responses.

RalphMarshall avatar Oct 31 '14 12:10 RalphMarshall

true, I almost forgot that we have contributions coming in this area, thanks ralph for pointing this out!

Michadelic avatar Oct 31 '14 13:10 Michadelic

I think Michael just chose an unlucky term for explanation of the reason :) Due to historical reasons the commons library already supports these standards, while sap.m does not. But is planned for the future and we are aware that this is a problem for some applications which already have to support this.

blaesius avatar Oct 31 '14 13:10 blaesius

Thanks to everybody for the input. I see this is marked as Author Action. Is there additional information you need from me, or should I just update it when I'm ready with the code change?

RalphMarshall avatar Oct 31 '14 14:10 RalphMarshall

i just removed the author action label, i think the issue is quite clear. For the implementation you can have a look at the common button control.

Michadelic avatar Oct 31 '14 15:10 Michadelic

"I think Michael just chose an unlucky term for explanation of the reason :)"

Ah, yes. I would have been much happier if you guys just said "we haven't gotten to it yet" rather than use mobile as the reason.

sasgrw avatar Oct 31 '14 17:10 sasgrw

I have just submitted a pull request with a proposed fix.

RalphMarshall avatar Oct 31 '14 20:10 RalphMarshall