Cockpit-HQ / Cockpit

Cockpit Core - Content Platform
https://getcockpit.com
Other
388 stars 47 forks source link

UX: Increase the click hit-area on sub folder navigation #175

Closed mountainash closed 9 months ago

mountainash commented 9 months ago

Currently (in the Assets) the directory navigation active link size is only as big as the name of the directory (small names are hard to hit), yet the button overall is quite large.

I suggest increasing the A to a block element and even include the icon to make it easy/faster to locate and click.

Example

Screenshot

In the above screenshot the blue rectangle is the current link - I suggest expanding this to the red rectangle.

mountainash commented 9 months ago

I'm not sure on how the rest of the project is built - but this code change would not be good for accessibility (mainly screen readers)

aheinze commented 9 months ago

https://github.com/Cockpit-HQ/Cockpit/commit/2f9b9e027b6b269fa18b63a5e1c9d5372d7d050a

aheinze commented 9 months ago

accessibility is a huge topic, but I'm always thankful for hints 🙂