Skip to content

refactor: 💄 Adding cursor-pointer to clickable elements#66

Open
hannanel100 wants to merge 1 commit intoyonatanmgr:mainfrom
hannanel100:fix-cursor-pointer
Open

refactor: 💄 Adding cursor-pointer to clickable elements#66
hannanel100 wants to merge 1 commit intoyonatanmgr:mainfrom
hannanel100:fix-cursor-pointer

Conversation

@hannanel100
Copy link

Adding cursor-pointer to filter-buttons, OrgIcon, ReposIcon and Project cards.

#65

@vercel
Copy link

vercel bot commented May 15, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
opensource-il ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 15, 2023 0:56am

Adding cursor-pointer to filter-buttons, OrgIcon, ReposIcon and Project cards.
Copy link
Owner

@yonatanmgr yonatanmgr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @hannanel100! Thank you for your time.

I believe cursor-pointer shouldn't be used on arbitrary buttons but only on hyperlinks, in accordance with the W3C UI guidelines (+Apple Human Interface guidelines, Microsoft UX guidelines). The rare cases I do believe it is necessary is on buttons that have some significance over other buttons.

For example, in the repositories list on the right, clicking the project image opens the repository on GitHub, while clicking the project block main body opens the preview on the left. Currently, the user has a clear indication that the image is a hyperlink while the block isn't - and changing the cursor on every button to cursor-pointer removes this clarity.

The current solution we have (abiding the abovementioned guidelines) is having some hover effect on all buttons. A possible improvement is changing the look and feel of those buttons by changing the current colors/hover effects. What do you think?

@UrielOfir
Copy link
Collaborator

Should we close this PR?

@hannanel100
Copy link
Author

@yonatanmgr I understand what your'e saying regarding the filters. But what I actually don't understand, is why the OrgIcon and ReposIcon aren't just Link components, they are doing navigation, aren't they?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants