Skip to content

fix(animated-fab): correct Android shadow/content stacking#4903

Open
BogiKay wants to merge 1 commit intocallstack:mainfrom
BogiKay:fix/fab-shadow
Open

fix(animated-fab): correct Android shadow/content stacking#4903
BogiKay wants to merge 1 commit intocallstack:mainfrom
BogiKay:fix/fab-shadow

Conversation

@BogiKay
Copy link
Copy Markdown
Collaborator

@BogiKay BogiKay commented Apr 19, 2026

Motivation

This PR fixes a stacking issue affecting AnimatedFAB on Android 9. The component renders shadow and content as sibling layers and on Android 9 an elevated view also affects z-order for overlapping siblings. In this case, the elevated shadow layer can render above the FAB content. This change explicitly sets the sibling z-index on Android so the content stays above the shadow.

Related issue

#4848

Test plan

Before After
before-android-9.webm
after-android-9.webm
before-ios.mov
after-ios.mov

@callstack-bot
Copy link
Copy Markdown

Hey @BogiKay, thank you for your pull request 🤗. The documentation from this branch can be viewed here.

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