Skip to content

Disabled Button Shows Incorrect Cursor on Web #4659

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

Closed
VariabileAleatoria opened this issue Mar 18, 2025 · 1 comment · Fixed by #4701
Closed

Disabled Button Shows Incorrect Cursor on Web #4659

VariabileAleatoria opened this issue Mar 18, 2025 · 1 comment · Fixed by #4701

Comments

@VariabileAleatoria
Copy link

VariabileAleatoria commented Mar 18, 2025

Current behaviour

When using react-native-paper on the web, a disabled Button still displays a pointer (cursor: pointer) on hover, making it appear clickable when it is not. This creates misleading UX, as the button should not indicate interactivity when disabled.

Expected behaviour

A disabled button should not visually indicate interactivity on hover.
This is what react-native Pressable or Button does.

How to reproduce?

Here a simple snack that replicates the issue https://snack.expo.dev/a3wbzrOwpg6A8hhoZF43k

Preview

Image

Your Environment

software version
react-native 0.74.5
react-native-paper 5.13.1
expo sdk 51.0.28
@VariabileAleatoria
Copy link
Author

I strongly believe this is caused by the following line


Could it be applied only when not disabled? Or can you provide a way of giving a style to the TouchableRipple inside a Button?

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

Successfully merging a pull request may close this issue.

2 participants