J4 Issue ?
avatar brianteeman
brianteeman
23 Jul 2018

I am creating this as a new issue instead of it being on each of the open pr for custom elements as it effects them all.

When testing the custom elements there are several accessibility issues identified

  1. Clicking on a label should give focus to the field
  2. The label for the field should be announced but it is not

Looking at the following video from google and the associated examples it is clear to see that there are quite a lot of changes that need to be made to all the custom elements that are being used in j4 to make sure they are accessible and standards compliant. (This includes the custom elements already merged and all future elements)

Unfortunately as this is all js I can't help with writing fixes I can just point out the issue and stress the severity of it.

From my understanding of this it is not correct to just have the field in the custom element. The label must be in the custom element as well

Short Video - watch first

https://www.youtube.com/watch?v=7a6bLXw2lqQ

Documentation and examples

https://developers.google.com/web/fundamentals/web-components/examples/

avatar brianteeman brianteeman - open - 23 Jul 2018
avatar joomla-cms-bot joomla-cms-bot - change - 23 Jul 2018
Labels Added: ? ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 23 Jul 2018
avatar dgrammatiko
dgrammatiko - comment - 23 Jul 2018

The video is irrelevant as none of our custom elements is hiding the contents into the shadow DOM.

avatar brianteeman
brianteeman - comment - 23 Jul 2018

so it may be irrelevant but it oesn't get around the fact that we do have the problems described

avatar franz-wohlkoenig franz-wohlkoenig - change - 23 Jul 2018
Category Accessibility
avatar franz-wohlkoenig franz-wohlkoenig - change - 23 Jul 2018
Status New Discussion
avatar brianteeman
brianteeman - comment - 23 Jul 2018

Can we please just use already existing custom elements that work instead of trying and failing to write our own.

avatar dgrammatiko
dgrammatiko - comment - 23 Jul 2018

@brianteeman you have any suggestions?
The only requirement we have is to not have any dependencies

avatar brianteeman
brianteeman - comment - 23 Jul 2018

why not? there are plenty of dependencies already in joomla

avatar mbabker
mbabker - comment - 23 Jul 2018

He basically means "no hard jQuery or UI framework (Bootstrap) dependencies".

avatar brianteeman brianteeman - change - 30 Jul 2018
Labels Added: J4 Issue
avatar brianteeman brianteeman - labeled - 30 Jul 2018
avatar brianteeman brianteeman - change - 8 Nov 2018
Status Discussion Closed
Closed_Date 0000-00-00 00:00:00 2018-11-08 13:17:44
Closed_By brianteeman
Labels Added: ?
Removed: ?
avatar brianteeman brianteeman - close - 8 Nov 2018
avatar wilsonge wilsonge - change - 17 Feb 2021
Labels Removed: ?
avatar wilsonge wilsonge - unlabeled - 17 Feb 2021

Add a Comment

Login with GitHub to post a comment