Skip to content

feat(fab-list): add animated prop to disable the staggered reveal - #31778

Open
ShaneK wants to merge 2 commits into
feature-9.1from
FW-7991
Open

ShaneK wants to merge 2 commits into
feature-9.1from
FW-7991

Conversation

@ShaneK

@ShaneK ShaneK commented Nov 18, 2026 •

Copy link
Copy Markdown
Member

Issue number: internal


What is the current behavior?

Currently, a fab list shows its buttons one at a time when it opens, even when the main fab button has animated="false", the global animated config is false, or the user prefers reduced motion. Setting animated on the list buttons doesn't help because it only covers their own transitions.

What is the new behavior?

  • Added an animated prop to ion-fab-list. When it's false, every button in the list shows at once.
  • The list also skips the stagger when the global animated config is false or the user prefers reduced motion.
  • Inside an ion-fab, the list follows the main fab button's animated unless the list sets its own, so setting it on the main button is enough.

Does this introduce a breaking change?

  • Yes
  • No

But it is a new feature, which is why it's pointed at feature-9.1

Other information

This is the follow-up from Brandy's review on #31743.

The fab on the right of the fab button animation test page has animated="false" on its main button, so its list should now open all at once:

Fab button animation test page

@ShaneK
ShaneK requested a review from a team as a code owner November 18, 2026 22:02
@ShaneK
ShaneK requested a review from brandyscarney November 18, 2026 22:02
@vercel

vercel Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
ionic-framework Ready Ready Preview Nov 20, 2026 5:02pm UTC

Request Review

@github-actions github-actions Bot added package: core @ionic/core package package: angular @ionic/angular package package: vue @ionic/vue package labels Nov 18, 2026

@brandyscarney brandyscarney 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.

The behavior looks good! My main request is to let the list's own animated win instead of being overwritten by ion-fab.

One more thing outside the diff: the main button's animated now also controls the list reveal, but its JSDoc in fab-button.tsx only describes the button's own transition. Could it say something like "When used as the main button of an ion-fab, this also controls whether the buttons in its ion-fab-list show one at a time, unless the list sets its own animated.

Comment thread core/src/components/fab/fab.tsx Resolved

@brandyscarney brandyscarney 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 changes! Looks good.

@thetaPC thetaPC left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM, minor suggestions

"Setting it on the main button is enough" reads as if it turns off all motion in the list. The buttons in the list still scale and fade in, just all at once. Could that bullet say each button in the list still needs animated="false" to skip its own transition?

Comment on lines +41 to +44
* If `true`, the fab buttons in the list will show one at a time
* when the list opens. If not set, it follows the main fab button's
* `animated`.
*/

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The docs table will show no default for this prop, since it has none. The JSDoc also doesn't say what an unset list does outside an ion-fab, so a reader can't tell that it still shows its buttons one at a time:

Suggested change
* If `true`, the fab buttons in the list will show one at a time
* when the list opens. If not set, it follows the main fab button's
* `animated`.
*/
* If `true`, the fab buttons in the list will show one at a time
* when the list opens. If not set, it follows the `animated`
* property of the main fab button in its `ion-fab`, or `true`
* when the list is not in an `ion-fab`.

This branch was successfully deployed

1 active deployment
Preview — 9fa60703 Deployed Nov 20, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

package: angular @ionic/angular package package: core @ionic/core package package: vue @ionic/vue package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants