react-select icon indicating copy to clipboard operation
react-select copied to clipboard

Remove arrow when input disabled

Open adirima-paix opened this issue 10 years ago • 2 comments

Hey,

As an improvement, when it's disabled, you could remove the arrow as user is not able to use it anyways?

Thanks, Adriana

Thanks for using react-select!

If you are reporting an error please include a test case that demonstrates the issue you're reporting! This is very helpful to maintainers in order to help us see the issue you're seeing.

Here is a Plunker you can fork that has react-select loaded and supports JSX syntax: https://plnkr.co/edit/HTmtER9AMNcPoWhXV707?p=preview

You may also find the online Babel tool quite helpful if you wish to use ES6/ES7 syntax not yet supported by the browser you are using.

adirima-paix avatar Aug 31 '16 11:08 adirima-paix

How about a decreased opacity? That way it reinforces the fact that it's disabled while still looking like a drop-down. If we hide the arrow entirely it might be ambiguous whether it's a drop-down or a regular form input. (Which may or may not actually matter, but still...)

For example, here's a 0.35 opacity for the arrow: screen shot 2016-09-04 at 1 23 48 pm

Compared to the enabled state: screen shot 2016-09-04 at 1 24 44 pm

bvaughn avatar Sep 04 '16 05:09 bvaughn

Implemented in commit 00dd299.

bvaughn avatar Sep 04 '16 05:09 bvaughn