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

Media button ripple fix #1842

Merged
merged 5 commits into from
Jan 3, 2024
Merged

Conversation

kpaikena
Copy link
Collaborator

@kpaikena kpaikena commented Dec 1, 2023

WHAT

Make the button click ripple in previous/next media buttons bigger and round.

WHY

Previously the button click ripple for media buttons was too small, and oval rather than round, which is bad UX.

HOW

  • Add UnboundedRippleButton that can show an unbounded ripple that can be larger than the button itself.
  • Use the UnboundedRippleButton from MediaButton and AnimatedMediaButton to show a bigger ripple on button click.

Checklist 📋

  • Add explicit visibility modifier and explicit return types for public declarations
  • Run spotless check
  • Run tests
  • Update metalava's signature text files

*/
@ExperimentalHorologistApi
@Composable
public fun UnboundedRippleButton(
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we want this as new public API, or keep internal?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

We can keep it internal for now.

@kpaikena kpaikena merged commit 3d98add into google:main Jan 3, 2024
4 checks passed
@kpaikena kpaikena deleted the media-button-ripple-fix branch May 29, 2024 11: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