collect icon indicating copy to clipboard operation
collect copied to clipboard

Background in ranking items dialog in rank widget is white

Open dbemke opened this issue 10 months ago • 12 comments

ODK Collect version

the master version 38a4b0ec4eea71fda685493b3931137b11ec5621

Android version

10, 14

Device used

Redmi t,Pixel 7a

Problem description

In rank widget in the dialog with choices all colors in the background changed to white. The issue doesn’t occur in the store version 2024.1.3 rank

Steps to reproduce the problem

  1. Set light mode in Collect.
  2. Go to All widgets form to rank widget.
  3. Tap "Rank items".

Expected behavior

store

dbemke avatar Mar 27 '24 10:03 dbemke

The color of items didn't change but the color of the dialog did (https://github.com/getodk/collect/pull/6025). Now it's more gray and that's why the difference is not visible enough. @alyblenkin what do you think? What color would you use other (for the items that you can rank)?

grzesiek2010 avatar Mar 27 '24 22:03 grzesiek2010

The color of items didn't change but the color of the dialog did (#6025). Now it's more gray and that's why the difference is not visible enough. @alyblenkin what do you think? What color would you use other (for the items that you can rank)?

Good spot! Could we make it the same gray as the text fields, which I believe is our surface container highest.

alyblenkin avatar Mar 28 '24 14:03 alyblenkin

Could we make it the same gray as the text fields, which I believe is our surface container highest.

This won't be enough. The difference between colorSurfaceContainerHighest and colorSurfaceContainerHigh (the color we used to display dialogs) is not visible enough. Screenshot_1711638743

grzesiek2010 avatar Mar 28 '24 15:03 grzesiek2010

Got it. Do we need to adjust the highest surface container to make the difference between them darker?

I believe we made the highest is #F2F2F2, so if we try #E0E0E0 or #EBEBEB the difference should be darker.

alyblenkin avatar Mar 28 '24 15:03 alyblenkin

#EBEBEB #E0E0E0
Screenshot_1711643606 Screenshot_1711643680

I think the darker one looks better. The first one might not be visible in daylight. Any thoughts @alyblenkin? colorSurfaceContainerHighest is the one we use to display the banner in the form end view and the no-errors pill (see related issue https://github.com/getodk/collect/issues/6046). @alyblenkin what colors should we use in those cases instead?

grzesiek2010 avatar Mar 28 '24 16:03 grzesiek2010

@alyblenkin I have the same problem with https://github.com/getodk/collect/issues/5845. The bottom sheet has that Learn more about MBTiles info section: image and if I try to use the gray color we use in the form end view: image It's not visible because the bottom sheet dialog has a darker background by default like normal dialogs.

It would be good to decide what color should be used in such cases.

grzesiek2010 avatar Apr 24 '24 15:04 grzesiek2010

It's not visible because the bottom sheet dialog has a darker background by default like normal dialogs.

That's too bad - the new colour mapping isn't ideal in all cases! I'm not sure we want to introduce another colour. Another alternative I can think of is creating a divider between the info section and the actions.

alyblenkin avatar Apr 24 '24 16:04 alyblenkin

Another alternative I can think of is creating a divider between the info section and the actions.

I can do that for that new bottom sheet but this does not solve the problem with the ranking question type.

grzesiek2010 avatar Apr 24 '24 20:04 grzesiek2010

@grzesiek2010 @seadowg, I'm wondering if we should adjust the surface colours again because they're making things pretty tricky.

We need to figure out a way to create more colour options because we need a higher contrast for the ranking question type, and #E0E0E0 works well. However, we want the message on the end screen to be much lighter because the text is harder to read with a darker background. #EBEBEB is probably the darkest we would want for the messages because we had to switch it from blue to grey. Another idea is to remove the background colour for the messages so they are consistent throughout (end screen and bottom sheet). What do you think? Happy to chat about it too if that's easier!

alyblenkin avatar Apr 24 '24 22:04 alyblenkin

@alyblenkin We're currently in a situation where our "surface container low", "surface container" and "surface container high" are all the same so that's probably leading to some of these problems with contrast. It might be worth taking a step back and redefining the whole color set.

When we converted to Material 3, the Android components library wasn't using the tonal surface colors yet so we weren't able to use the Theme Builder properly where as we can now. Maybe it would be good to try defining a color palette there and export for the "Android Views (XML)" for us and we can define all the colors in one go?

seadowg avatar Apr 25 '24 12:04 seadowg

Capturing the summary from our group chat on slack here:

@seadowg we will find time to pair on plugging in the colours we already use into the tonal palette and hopefully it generates something that works well.

@grzesiek2010 I don't think it's a huge deal for use to use the lighter grey for now for the ranking question until we sort out the colours. And as Callum said, the worse case is the beta goes out with the ranking problem.

alyblenkin avatar Apr 25 '24 17:04 alyblenkin

@grzesiek2010 - I wanted to give a quick update on this one.

@seadowg and I briefly tried the theme builder and added our colours, and it seems better than what they had before! It's not perfect and will need some tweaking, but they also now have a figma plugin that I can play around with to propose different options. I'll aim to do that as part of this release so that we can unblock this issue and avoid running into these same issues.

alyblenkin avatar May 13 '24 17:05 alyblenkin

Let's go with using colorSurfaceContainerHighest for now (like in https://github.com/getodk/collect/issues/6047#issuecomment-2025476840). We're looking to increase the contrast between the tonal colors, so this should get better when we do that next release.

seadowg avatar Jun 07 '24 15:06 seadowg

Let's go with using colorSurfaceContainerHighest for now (like in #6047 (comment)). We're looking to increase the contrast between the tonal colors, so this should get better when we do that next release.

Did you happen to see this https://github.com/getodk/collect/issues/6171, @seadowg? I think the drag icon will significantly improve this interaction.

alyblenkin avatar Jun 07 '24 17:06 alyblenkin

Did you happen to see this https://github.com/getodk/collect/issues/6171, @seadowg? I think the drag icon will significantly improve this interaction.

Yeah it's definitely nicer! I think we want a quick fix option we can apply before this next release though, so I'm still in favour of making the color change first.

seadowg avatar Jun 10 '24 08:06 seadowg

Yeah it's definitely nicer! I think we want a quick fix option we can apply before this next release though, so I'm still in favour of making the color change first.

Makes sense!

alyblenkin avatar Jun 12 '24 16:06 alyblenkin