owid / owid-grapher

A platform for creating interactive data visualizations
https://ourworldindata.org
MIT License
1.37k stars 230 forks source link

fix 3234 add overlay to menu #3597

Closed toni-sharpe closed 4 months ago

toni-sharpe commented 4 months ago

Intro

As stated in my comment I have brought this up once the style is applied. A few images to look at.

Some further requirements to come as issue discussions raised three pages and states they should all function with the same style and behaviour:

http://localhost:3030/age-structure http://localhost:3030/charts http://localhost:3030/entries-by-year

Issue

https://github.com/owid/owid-grapher/issues/3234

Applying overlay

Suggestion

Move the close button to the left of the menu.

This means the menu can be toggled open and close without moving the mouse and puts it within easier left thumb range for standard use of a hand-held device (and the thumb doesn't need to move either). The edge of the clickable area can also touch the edge of the screen, making the click target easier to hit, some part of Fitt's Law.

Consistency

For consistent styling I had to get this page too, it's pushed up, but wasn't originally asked for.

So over to you as technically this breaks the Contr. Guide. The commit is isolated.

But it also makes me wonder where else the consistency might be broken, fairly complex site, bits I've never seen etc. put me at a disadvantage answering this. It's more likely a "type of header" list than page list.

Screenshot 2024-05-10 at 06 18 15

Screen shots

Screenshot 2024-05-09 at 18 59 49

Screenshot 2024-05-09 at 18 57 24

Screenshot 2024-05-09 at 18 56 57

Screenshot 2024-05-09 at 19 02 28

toni-sharpe commented 4 months ago

@mlbrgl I've made the comment changes,

As for styling, I agree, the holistic and measured approach of a rethink/redesign that is happening right now makes the quick-fix option best

toni-sharpe commented 4 months ago

@mlbrgl Final note: Joe Hassell took an interest in this issue and may want see a working version of what we are to deploy.