* Cédric Krier [2015-07-04 08:58 +0200]:
Hi,
Hello,
For now, we put a blue color on entries when they are required (and
switch to red when validated as empty).
I think it is a bad practice for 2 reasons:
- the colors are not custumizable and so they could not work on some
thèmes.
- it is doesn't help the accessibility [1] as this information is
only based on color.
So I was thinking instead about adding a "*" on the labels of the
required fields. This still stay quite visual (but not too much) and
readable for accessibility.
What do you think? Has anyone a better idea?
Switching to GTK3 ;).
In fact I think this should be handle by GTK and not us.
They have those states available for the widgets:
https://developer.gnome.org/gtk3/stable/gtk3-Standard-Enumerations.html#GtkStateFlags
Amongst them there is GTK_STATE_FLAG_INCONSISTENT which states that
the widget is inconsistent and this state is available as a CSS-alike
pseudo-class for theme designers. It is then up to them to handle
this.
And for the accessibility information what we could do is to adding a
description to the invalid field that it's a required one (or
something else about domain) once the field is inconsistent and then
focus it, the assistive technology will then convey this information
to the user.
--
Nicolas Évrard - B2CK SPRL
E-mail/Jabber: nicolas.evr...@b2ck.com
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/