On 2015-07-04 12:32, Mathias Behrle wrote: > * Jordi Esteve: " Re: [tryton-dev] Colors of fields" (Sat, 04 Jul 2015 > 10:49:44 > +0200): > > On 04/07/15 08:58, Cédric Krier wrote: > > > Hi, > > > > > > 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? > > > > > > > I suggest to not remove the current behaviour. The blue color and > > switching to red if the field is not filled is intuitive and clear for > > most people, the asterisk is not intuitive (needs a previous > > explanation), so I suggest adding a "*" without removing current behaviour. > > Marking a field with a star is On/Off, while currently with colors we have the > evidence, that a field is required *and* showing after the validation, > which fields missed the validation. So by replacing colors with stars we would > lose one information level. Perhaps this could be solved by differentiating > with > small and big star (small for required field, big for missing validation).
I think the info which currently just says 'Invalid form' will need to be improved to give the name of the field with error and also I think we can give a explaination for: - required is simple: <Field> is required - domain invalid: <Field> must follow: <domain parsed> (only if we can parse it otherwise: <Field> is not valid for domain) Also keep in mind, that the colors by default has no meaning, it has now for current users because they learn it. But it is really not so obvious for newbie, I'm often astonished by seeing new user not understand what it means a bleu colored field. I agree that a '*' on the label also need to be learn but we can teach user by setting a tooltip on it and with my proposal for info. > OTOH I would appreciate indeed, that the idea to surround the field with a red > line instead of coloring the background would make its way [0]. > This change would make the interface less shouting, but more informative. I did not find any property in GTK that will allow it. -- Cédric Krier - B2CK SPRL Email/Jabber: cedric.kr...@b2ck.com Tel: +32 472 54 46 59 Website: http://www.b2ck.com/
pgpoWcKxtHw4f.pgp
Description: PGP signature