? ? Pending

User tests: Successful: Unsuccessful:

avatar brianteeman
brianteeman
12 Apr 2017

Currently on any form that is submitted with an invalid field we get visual markup of a red border around the field and red text for the label

Before PR

screenshotr11-33-49

You can see that there is a message block at the top and that the fields with invalid input have a red border.

Now look at the same screenshot without any colour.

screenshotr11-33-49

As you can see, in this simulation, it is much harder now to see which fields have invalid input.

after PR

After adding a background colour to the field that matches the colour of the message it is much easier for someone who cannot see colour to find the fields with invalid data

screenshotr11-36-49

screenshotr11-36-49

An alternative approach would be to apply the background to the field and label but this would require extensive changes to our markup.

avatar brianteeman brianteeman - open - 12 Apr 2017
avatar brianteeman brianteeman - change - 12 Apr 2017
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 12 Apr 2017
Category Administration Templates (admin) Front End Templates (site)
avatar brianteeman
brianteeman - comment - 12 Apr 2017

better images

149199533093973
149199521564487

avatar brianteeman
brianteeman - comment - 12 Apr 2017
avatar C-Lodder
C-Lodder - comment - 12 Apr 2017

You can add the background to the HTML5 invalid pseudo tags if you like, but as Joomla adds an actual class (.invalid), I don't think :invalid is ever used. Also, we don't use HTML5 validation if I'm not mistaken.

Other than that, this seems fine to me

avatar dgt41
dgt41 - comment - 12 Apr 2017

@brianteeman @C-Lodder there was a decision in the London sprint to keep the old validation and not force the HTML 5 for b/c convenience reasons. So yes the :invalid is not used

avatar dgt41
dgt41 - comment - 12 Apr 2017

Plz ignore me, I love thought this was against j4

avatar franz-wohlkoenig franz-wohlkoenig - test_item - 12 Apr 2017 - Tested successfully
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 12 Apr 2017

I have tested this item successfully on 7724d11


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/15245.

avatar franz-wohlkoenig franz-wohlkoenig - change - 12 Apr 2017
Easy No Yes
avatar rjcf18 rjcf18 - test_item - 14 Apr 2017 - Tested successfully
avatar rjcf18
rjcf18 - comment - 14 Apr 2017

I have tested this item successfully on 7724d11

Before:
deepinscreenshot20170414143819

After:
deepinscreenshot20170414143722


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/15245.
avatar franz-wohlkoenig franz-wohlkoenig - change - 14 Apr 2017
Status Pending Ready to Commit
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 14 Apr 2017

RTC after two successful tests.

avatar zero-24
zero-24 - comment - 14 Apr 2017

@rdeutz do you want this to be part of 3.7.0 or should we move this to 3.7.1 ?

avatar C-Lodder
C-Lodder - comment - 14 Apr 2017

@zero-24 if it's an a11y related PR...this should go in asap.

avatar infograf768
infograf768 - comment - 14 Apr 2017

This can't break anyhting and looks good. Agree to merge in 3.7.0

avatar zero-24
zero-24 - comment - 14 Apr 2017

I agree too but it is up to the release leader to decide which PRs going to be merged in RC Version (were we usualy only merge critial patches)

avatar rdeutz
rdeutz - comment - 14 Apr 2017

not a fan, it makes it hard to see the difference between a field with an error and a disabled field. We exchange on confusing situation with another

avatar brianteeman
brianteeman - comment - 14 Apr 2017

We rarely have disabled fields. I chose a bad example to screenshot. Better to be confused between an invalid field and a disabled field than not to be able to see the disabled field at all.

avatar rdeutz rdeutz - change - 14 Apr 2017
Status Ready to Commit Needs Review
avatar rdeutz
rdeutz - comment - 14 Apr 2017

We have already more than one way to inform the user that there is a problem. If the argument is that people can see the bold border, so we need to change the background, it is even more confusing because this would mean these people are not able to see the difference between a error field and a disabled field.

I am not convinced that this change will make the situation better.

Changed the state to needs review


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/15245.

avatar brianteeman
brianteeman - comment - 14 Apr 2017

Another option is to add an icon (warning symbol) in the field as well as or instead of the background

avatar C-Lodder
C-Lodder - comment - 14 Apr 2017

@rdeutz - It really helps with those who are colour blind. Also bare in mind that some forms from 3PD's may be Ajax (no refresh) driven, therefore the user may not see any alerts.

avatar C-Lodder
C-Lodder - comment - 14 Apr 2017

Have also just asked a friend who's colour blind, he has said the darker inputs are far easier to distinguish

avatar brianteeman
brianteeman - comment - 14 Apr 2017

@rdeutz remember that the background is not the only way to identify the error. We already have the error messages which are a11y valid we just need to add additional help to make it easier to locate the named fields. That really raises the a11y validation

avatar brianteeman
brianteeman - comment - 17 Apr 2017

Can we please merge this. It is an a11y improvement and while we are still on bs2 its the best that can be done in a fully b/c manner

avatar angieradtke
angieradtke - comment - 17 Apr 2017

A good compromise could be adding an icon and changing the color:
label.invalid:before
{
content: "\48";
display:inline-block;
margin-right:3px;
font-family: 'IcoMoon';
}

input.invalid {
border: 1px solid #9d261d;
background: #f2dede;

}

avatar brianteeman
brianteeman - comment - 17 Apr 2017

That would introduce more q11y issues as many screen readers will read out the value of the icon

avatar ciar4n
ciar4n - comment - 17 Apr 2017

Personally I think this PR is fine the way it is. An issue exists and this PR addresses it. An alternative is to increase the invalid border width but I think given the choice I would choose the current background color change.

avatar angieradtke
angieradtke - comment - 17 Apr 2017

Hi Brain,
screenreader-user are not able to get the value of content filled in with :before and :after

avatar ciar4n
ciar4n - comment - 17 Apr 2017

@ylahav You might have some input here?

avatar brianteeman
brianteeman - comment - 17 Apr 2017

screenreader-user are not able to get the value of content filled in with :before and :after

That is not universally true across all supported browsers

avatar rdeutz
rdeutz - comment - 17 Apr 2017

I still think this is only a half backed solution for a problem, it only changes the area where we put the confusion, before required field with not required field, after required field with disabled fields. I thing the second one is worse than the first one. Adding the icon seems to me a good way to have a better chance to spot the difference between required field with disabled fields.

avatar angieradtke
angieradtke - comment - 17 Apr 2017

Hi Brian,
interesting, do you know which screenreader in combination with which browser can interpret generated content? If this is for most of the screenreaders true, the icon solution can really be a problem.

avatar brianteeman
brianteeman - comment - 17 Apr 2017

Not sure but i know that why bootstrap 3 does not use that method and instead uses specific markup (sr-only) to hide the icons displayed with invalid fields

avatar angieradtke
angieradtke - comment - 17 Apr 2017

ah ok , maybe we should check this before.

avatar brianteeman brianteeman - change - 18 Apr 2017
Labels Added: ?
avatar tonypartridge
tonypartridge - comment - 23 May 2017

To me this is much better, an Icon to the right will suffice.. but that's providing the disabled user can see it clearly and understand it. Changing the color of an entire background is more noticeable.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/15245.

avatar tonypartridge
tonypartridge - comment - 23 May 2017

I have tested this item successfully on f3ec7a4


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/15245.

avatar tonypartridge tonypartridge - test_item - 23 May 2017 - Tested successfully
avatar C-Lodder
C-Lodder - comment - 23 May 2017

I have tested this item successfully on f3ec7a4


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/15245.

avatar C-Lodder C-Lodder - test_item - 23 May 2017 - Tested successfully
avatar franz-wohlkoenig franz-wohlkoenig - change - 23 May 2017
Status Needs Review Ready to Commit
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 23 May 2017

RTC after two successful tests.

avatar rdeutz rdeutz - change - 23 May 2017
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2017-05-23 19:45:38
Closed_By rdeutz
Labels Added: ?
avatar rdeutz rdeutz - close - 23 May 2017
avatar rdeutz rdeutz - merge - 23 May 2017
avatar brianteeman
brianteeman - comment - 23 May 2017

Thanks

Add a Comment

Login with GitHub to post a comment