Skip to content

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

Merged
satya164 merged 1 commit into
callstack:mainfrom
BogiKay:fix/fab-shadow
May 9, 2026
Merged

fix(animated-fab): correct Android shadow/content stacking#4903
satya164 merged 1 commit into
callstack:mainfrom
BogiKay:fix/fab-shadow

Conversation

@BogiKay

@BogiKay BogiKay commented Apr 19, 2026

Copy link
Copy Markdown
Collaborator

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.

@satya164 satya164 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for the PR

@satya164 satya164 merged commit bf20edb into callstack:main May 9, 2026
3 checks passed
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.

3 participants