Enterprise: Colorpicker: Text and dropdown icon are hidden in small modal/container

Created on 10 Mar 2021  路  9Comments  路  Source: infor-design/enterprise

Describe the bug
Observed that colorpicker's text and dropdown icon became hidden when the modal/container width became smaller, it is also not possible to open the colorpicker menu to select color.

Colorpicker dropdown icon is missing when scrollbar is display in the dialog

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'https://design.infor.com/code/ids-enterprise/latest/demo/components/colorpicker/example-sizes'
  2. Resize the browser to the smallest width.
  3. Zoom in few times. (browser zoom)

Expected behavior
The colorpicker retains the text and dropdown icon.

Version

  • ids-enterprise: 4.37.0

Screenshots
image

Platform

  • Infor Application/Team Name: Homepages
  • OS Version: Window 10, Big Sur
  • Browser Name: Chrome, Safari
  • Browser Version: Chrome/Version 88.0.4324.190 (Official Build) (64-bit), Safari/Version 14.0.3 (16610.4.3.1.4)
[2] homepages type

All 9 comments

I think the solution here is probably to make the colorpicker size that is "full width" work better so that it doesnt expand out of the container

checking into it

I can't test that specific page locally, but it should be good. There are some responsiveness improvements in #5005 which should allow the user to always hit the trigger/expand arrow regardless of the size, and text should flow more naturally when things get squashed.

image

Sidenote: I noticed that the color picker resembles a dropdown, yet the user has to click specifically on the down-arrow (so leads to a little bit of pixel-hunting). Didn't address this idea since still familiarizing myself with the codebase/wanted to get this in, but seems to be a matter of adding the same callbacks as the color menu expand.

Not sure on priority or whether there is a bigger picture I am missing on it, but perhaps another issue could be opened as an enhancement?

Looks good - I think regarding your comments on that you need to click the arrow. This is because you can also directly enter the text in the field. But you can use down arrow to open like a dropdown.

Perhaps we could make the swatch clickable as well? But thats probably a bit out of scope, but feel free.

Oh, I see! Did not realize this functionality there. In terms of the
swatch, I'll try to do that.

@tmcconechy I wasn't able to reproduce the functionality with typing directly into the text field. Is this possibly a regression, or maybe a future-facing feature? See:
https://master-enterprise.demo.design.infor.com/components/colorpicker/example-sizes.html

@tmcconechy oh I see! should have browsed the examples but had a bit of tunnel vision once focused on the original issue. Thanks for pointing that out.

Was this page helpful?
0 / 5 - 0 ratings