Twin-Cities-Mutual-Aid / twin-cities-aid-distribution-locations

A webapp to coordinate aid and care in the Twin Cities.
43 stars 32 forks source link

Styling Architecture Refactor + Theming + Card Styling + Sidebar Styling #203

Closed esitarz closed 4 years ago

esitarz commented 4 years ago

What


Please feel free to comment or slack me directly to chat about anything in here!


Why

UI has room for improvement! Styling Architecture needs help!

Ensure the following interactions work as expected. Please test using a mobile form factor.

Check the app in the following web browsers:

jdalt commented 4 years ago

@esitarz Could you do a master merge on this? I think there's some changes that have come in that will change the look of things a bit.

comeoneileen commented 4 years ago

Interesting! A couple of thoughts:

comeoneileen commented 4 years ago

Also, it's too hard to visually distinguish between the name of a site and the neighborhood. I see the logic of not using smallcaps for neighborhoods because caps is sometimes an accessibility mess, but if they're going to be in the same case then there needs to be contrast created some other way.

esitarz commented 4 years ago

Hey hey! Thanks @comeoneileen for taking the time to review!

amaxama commented 4 years ago

@esitarz I really like the direction of these style updates! I think it makes the list clear and easy to read and goes along well with the other main colors. The addition of color palette and component styling are super helpful too. I have a few suggestions to tighten it up a little bit so the cards don't take up so much screen real estate and so that hovering/scrolling over the cards is a little smoother. The main changes I made were:

This is what it looks like: Screen Shot 2020-08-22 at 3 35 56 PM

amaxama commented 4 years ago

This is what hover looks like (again, open to changing this if it's too bright or people want a different color) :

screen-record-list-hover

Sorry about the terrible graphics, was originally a quicktime vid and obviously the conversion to gif didn't go too well

esitarz commented 4 years ago

Hey @amaxama! Thanks so much for polishing this up. I think your bullets are all very solid-- especially like the subtle background color on the sidebar!

I think the change in color is a bit too extreme and competes too much with the indicator "dot" color (blue/babyblue/red). Maybe --primary-50 or simply a very light grey would be a better hover state choice?

It also looks like those sidebar cards are packed in tight and could use just a tad more vertical spacing. Maybe margin: .5rem 0; or so?

Here's a quick mockup of what I was thinking we could add to the cards to give them a little more "pop" of color. mockup--color-accent

comeoneileen commented 4 years ago

Cool, yeah. Digging the direction this is headed. Thank you both!

I still see overflow (pictures below) on Windows 10/Chrome 84.0.4147.105.

image

image

amaxama commented 4 years ago

@esitarz Yeah, I totally agree on the hover color...I went back and forth so much eventually just decided to submit, hoping someone would give feedback so thanks! :) The only thing with a light grey is it kind of blends a bit with the background, but I'll see if I can get an okay contrast going. It's just supposed to be a subtle visual cue for the user anyway so something minor is probably fine like you said. .......... I tried primary-50 and it's a bit of the same situation with the secondary purple but with blue..a bit too extreme.. with gray-50 and increasing the shadow a tiny bit on hover I think it's a pretty good mix.

Fair point about the tightness of the cards (it gets a little accentuated by the vertical shift during hover but overall I think that effect is nice so better to just give a litter more space) I think it's at 0.5rem right now but I'll try it with a little extra.

That vertical indicator is a nice touch on the cards! Got that in there... is it overkill with the color?

@comeoneileen Thanks for the feedback! That's definitely an issue with the overflowing text...not exactly sure what the problem is. Eric, do you know what might have caused the overflow?

Here are the updates: card-hover-gray-50-side-color

esitarz commented 4 years ago

@amaxama WAY COOL! These vertical indicators look great here! Yeah honestly, we might be able to get away with removing the indicator "dot" next to the title now. It's not bad, but the border indicator conveys the color well and having it twice might be a tad overkill...I could go either way, what do you think?

Onto the hover state. I think how you have it here looks good. Not saying this is the right choice but just throwing another suggestion out there: what about bumping the sidebar bg and the card bg down 1-2 shades, then making the hover bg white?

As for that text overflow issue. Were you able to recreate on your end? I added a little css that might address the problem but without being able to recreate on my machine, it's a bit tougher. Let me know if you still see it after pulling in my last commit and if it's still there, maybe we could try paired programming to debug?

amaxama commented 4 years ago

@esitarz Yay! Yeah, I'm thinking similarly with it being a tad overkill in both places, but I also could go either way. I'll float it by some other TCMAP people to see if there's input.

My initial hunch with the background darker + white hover is it might be a little odd, but I can totally try it!

For the overflow, I was experiencing it as well. I hadn't actually looked into it at all until now but I think I found a fix. Will post an update later tonight

amaxama commented 4 years ago

@esitarz Okay... I tried the darker bg with white shadow.... 1 shade darker: Screen Shot 2020-08-27 at 7 10 27 PM

2 shades darker: Screen Shot 2020-08-27 at 7 12 31 PM

I definitely think it was worth a shot but I'm leaning towards what we had before instead.... What do you think?

here's a visual with the circle status indicators gone but the side colors slightly thicker: card-hover-gray-50-side-indicator-only

esitarz commented 4 years ago

@amaxama yeah I'm with you on reverting the colors to the way you had it.

I'm also sold that the indicator dots can go!

I've got one more idea: what if we use the opacity of the border-right indicator for the hover state? So drop them all to opacity: .75 or something that looks right, then :active, :hover {opacity: 1};?

Any luck on that text overflow bug? I'm wondering if it's as simple as changing line 3 in card.css to this? .card { flex-flow: column wrap; }

amaxama commented 4 years ago

@esitarz After consulting with some other people, everyone preferred to keep the second indicator in the title so I think we'll keep it.

I'll try out the opacity idea!

I did find a fix for the overflow! I mentioned it a few comments back but it was mixed in with everything else so easy to miss.

amaxama commented 4 years ago

@esitarz I played around with opacity and got it working. It's pretty subtle because a lot of users are mobile and I didn't want the visual to be too different between mobile and web so it's just a slight intensification on hover. card-hover-opacity-subtle

What do you think is going to be the best way to merge our changes together? We could open a branch off the actual repo then put the changes from your fork into the branch and then the changes from my fork into the branch? Because it's so many changes, I think it would actually be good to have them pushed to a branch off the main repo first so that the CI steps can run.

esitarz commented 4 years ago

@amaxama way cool on your above comments. I think it's looking great!

Whatever you think is easiest for the new branch. I'm assuming you've branched off my original, so your local has the "final styling" changes, but it doesn't look like you've pushed to your remote. So you could probably just point to the main repo and push up?

amaxama commented 4 years ago

@esitarz Okay! Yeah that sounds good, will do! I'll link this PR into that one so we keep a reference to all this great dialogue!

amaxama commented 4 years ago

Merged in with Issue #238