Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #1861: Make the entire like layout clickable vs just the text #2052

Merged

Conversation

jsoberg
Copy link
Contributor

@jsoberg jsoberg commented Dec 17, 2023

Previously just the text itself was clickable here, so I made the parent layout clickable instead. Ideally this layout would be a bit larger for a11y reasons, Google recommends 48dp minimum touch target size (link) but I left the sizing as-is for now.

my Habitica User-ID: caef89d8-3a3d-4d3b-a5ad-67cb0455a56e

@Hafizzle
Copy link
Contributor

Hey @jsoberg, thanks a bunch for this tweak!

Really smart move to make the entire layout clickable – it's little changes like these that can make a big difference, especially for accessibility.

As for the touch target size - good call! I think keeping Google's guidelines in mind is super important. We might play around with the sizing down the line, but for now, what you've done is spot on. TY!

@Hafizzle Hafizzle self-requested a review December 17, 2023 21:00
@Hafizzle Hafizzle merged commit 782965e into HabitRPG:main Dec 17, 2023
2 of 5 checks passed
@jsoberg
Copy link
Contributor Author

jsoberg commented Dec 17, 2023

Thanks @Hafizzle! I love the app btw, I'm hoping to contribute more regularly as time permits!

@jsoberg jsoberg deleted the js/1861/make-like-message-tap-target-larger branch December 17, 2023 23:09
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.

2 participants