On Mon, Jan 15, 2018 at 7:06 PM, Torben Barsballe <
tbarsba...@boundlessgeo.com> wrote:

> UI improvements are always nice, and this seems like a particularly useful
> one.
>
> The style differences relative to native drop-downs are a bit annoying,
> but seem fine. One possible alternate workaround for that would be to style
> the regular drop-downs so that they are the same between browsers. That
> should be as simple as adding a bit of CSS (Although most of the methods I
> could find for this used a background image to replace the select, so this
> workaround seems a bit finicky).
>

Indeed... I looked around but could not find an approach that would scale
well along the the base system font size changes... (there are some
bootstrap based examples that might work, but we don't use bootstrap in
GeoServer so...).

Can you think of any other case in the UI that would benefit from having
the select2 list?


> I think we should probably avoid replacing all drop-downs with the select2
> one just for style reasons, seems like it could be a bit
> annoying/unnecessary where there are only a few options.
>

Yeah, I was wondering myself. Personally I'd prefer visual consistency but
I have no strong opinion on this one, happy to leave it as is.


> One thing I did notice is that the select2 drop-down doesn't support
> keyboard navigation (tab + arrow keys), unlike a regular select. That seems
> like another good reason to only use it where necessary.
>

That is indeed annoying (although not sure how keyboard friendly the UI is
to start with).
Hmmm... seems like it may be fixable, I'll have a look into it:
https://github.com/select2/select2/issues/3472

Looking at the code, it seems pretty straightforward and easy to use.
> Overall, +1.
>

Thanks!

Cheers
Andrea

==

GeoServer Professional Services from the experts! Visit http://goo.gl/it488V
for more information.
==

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via di Montramito 3/A
55054  Massarosa (LU)
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39  339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

AVVERTENZE AI SENSI DEL D.Lgs. 196/2003

Le informazioni contenute in questo messaggio di posta elettronica e/o
nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il
loro utilizzo è consentito esclusivamente al destinatario del messaggio,
per le finalità indicate nel messaggio stesso. Qualora riceviate questo
messaggio senza esserne il destinatario, Vi preghiamo cortesemente di
darcene notizia via e-mail e di procedere alla distruzione del messaggio
stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso,
divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od
utilizzarlo per finalità diverse, costituisce comportamento contrario ai
principi dettati dal D.Lgs. 196/2003.

The information in this message and/or attachments, is intended solely for
the attention and use of the named addressee(s) and may be confidential or
proprietary in nature or covered by the provisions of privacy act
(Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection
Code).Any use not in accord with its purpose, any disclosure, reproduction,
copying, distribution, or either dissemination, either whole or partial, is
strictly forbidden except previous formal approval of the named
addressee(s). If you are not the intended recipient, please contact
immediately the sender by telephone, fax or e-mail and delete the
information in this message that has been received in error. The sender
does not give any warranty or accept liability as the content, accuracy or
completeness of sent messages and accepts no responsibility  for changes
made after they were sent or for other risks which arise as a result of
e-mail transmission, viruses, etc.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to