colourpicker icon indicating copy to clipboard operation
colourpicker copied to clipboard

Change element width for colourInput

Open reedliu opened this issue 3 years ago • 1 comments

Hi, Thanks for your nicely colourpicker package. I tried to make all elements are the same width. I was wondering how to change the colorInput width like numericInput in Shiny. I did not find the width parameter in colorInput function. Thank you! image

reedliu avatar Aug 01 '22 03:08 reedliu

That's a valid question. The reason there is no "width" supported is because the UI of the box that opens (the actual colour select) is fixed and won't scale up/down with the width of the text box. It's very easy to add a width argument and just change the length of the text box, but I thought it would look too weird if the box is shorter or longer and the selector tool doesn't adjust accordingly.

daattali avatar Aug 01 '22 21:08 daattali

Fixed

daattali avatar Oct 28 '22 05:10 daattali