Skip to content

TouchableRipple: on web the hover layer is the content color at 0.05 instead of the M3 0.08 #5308

Backlog

Description

@Doberjohn

Current behaviour

On web, TouchableRipple draws its hover layer by fading the ripple color by half (color(calculatedRippleColor).fade(0.5) in TouchableRipple.tsx). For IconButton the hover layer is the icon color at 0.05, and Button's hover layer is 0.05 too.

Expected behaviour

The hover layer at Material Design 3's hover state layer opacity: the content color at 0.08.

How to reproduce?

  1. On web, render <IconButton icon="camera" mode="tonal" onPress={() => {}} />.
  2. Hover it and read the hover layer's background color in the browser's developer tools.

Your Environment

software version
browser Chrome 156
react-native 0.88.1
react-native-web 0.21.4
react-native-paper 6.0.0-alpha.4 (the same code on main at 9795ac3)
expo sdk 58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions