Skip to content

fix(touchable-ripple): paint the web hover on top of the style background - #5242

Open
jacekAtCK wants to merge 8 commits into
callstack:mainfrom
jacekAtCK:fix/ripple-hover-over-background
Open

jacekAtCK wants to merge 8 commits into
callstack:mainfrom
jacekAtCK:fix/ripple-hover-over-background

Conversation

@jacekAtCK

@jacekAtCK jacekAtCK commented Nov 19, 2026 •

Copy link
Copy Markdown
Collaborator

Motivation

This is a followup to: #5224 (comment)

On web, TouchableRipple paints hover as its own backgroundColor, and a backgroundColor in style ovverides it. So a selected Drawer.Item or a selected List.Item from #5224, shows no hover effect.

Hover is now a linear-gradient background image after style. It paints on top of the background color and keeps the border radius. Hover no longer fades in as it cannot animate background image.

Related issue

Follow-up to #5224 (comment)

Screenshots / Videos

hover-after-drawer hover-before-drawer

Test plan

In the web example:

  1. Hover a selected Drawer.Item. The hover layer shows on top of the selected color, with rounded corners.
  2. Hover an unselected row and a Button. They look as before.

@github-actions

github-actions Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

Found potential problems with the pull request:

  • The description is too long. Please keep it under 1000 characters.

@jacekAtCK

Copy link
Copy Markdown
Collaborator Author

/review

@apex-sentinel-staging

This comment has been minimized.

@apex-sentinel-staging apex-sentinel-staging Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Apex Sentinel: 3 new findings on 58d3075. The verdict and the full list are in the summary comment.

Comment thread src/components/TouchableRipple/utils.ts Resolved
@jacekAtCK

Copy link
Copy Markdown
Collaborator Author

/review

@apex-sentinel-staging

This comment has been minimized.

@apex-sentinel-staging apex-sentinel-staging Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Apex Sentinel: 3 new findings and 1 moved to a new line on 25e3177. The verdict and the full list are in the summary comment.

Comment thread src/components/TouchableRipple/utils.ts Resolved
@jacekAtCK

Copy link
Copy Markdown
Collaborator Author

/review

@apex-sentinel-staging

This comment has been minimized.

@apex-sentinel-staging apex-sentinel-staging Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Apex Sentinel: 1 finding moved to a new line on 69a6fe0. The verdict and the full list are in the summary comment.

@apex-sentinel-staging

This comment has been minimized.

@apex-sentinel-staging apex-sentinel-staging Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Apex Sentinel: 1 finding moved to a new line on 69a6fe0. The verdict and the full list are in the summary comment.

Comment thread src/components/TouchableRipple/utils.ts Resolved
@jacekAtCK jacekAtCK self-assigned this Nov 19, 2026
@apex-sentinel-staging

This comment has been minimized.

@apex-sentinel-staging apex-sentinel-staging Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Apex Sentinel: 1 finding moved to a new line on 40b9845. The verdict and the full list are in the summary comment.

@jacekAtCK
jacekAtCK enabled auto-merge (squash) November 23, 2026 11:55
@apex-sentinel-staging

Copy link
Copy Markdown

Apex Sentinel · ✅ Approve · review of 7954145

Since the review of 40b9845: 0 new · 0 still open · 1 no longer raised

No open findings.

Not in the reviewers' prompt (1 file)
  • src/components/__tests__/__snapshots__/TouchableRippleWeb.test.tsx.snap: generated or a lockfile, so its lines were left out

Reviewed with this repository's own Sentinel configuration (9029fbcd5df0).

💬 Talking to Sentinel

In a finding's thread, reply with:

Command What it does
@apex-sentinel-staging note <context> Adds context; Sentinel re-checks the cited code
@apex-sentinel-staging pivot <why> Says the finding is wrong; Sentinel re-checks the cited code
@apex-sentinel-staging like Marks the finding as useful
@apex-sentinel-staging dislike <why> Marks it as not useful, so it is not raised again

On this conversation, comment @apex-sentinel-staging review to run a full review once again.

@jacekAtCK
jacekAtCK disabled auto-merge November 23, 2026 12:08

This branch has not been deployed

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants