instacart / instacart/Snacks

Un-mounting transitions

Open
#152 2 comments 0 reactions 1 assignee Claimed by @spencerschack View on GitHub
discussion
Dominant language
JavaScript
Stars
82
Forks
36
PR merge metrics
No merged PRs in 30d

Description

### What?
Transitions (`Fade`, `Grow`, `Slide`) that unmount their children when they are no longer visible.

### Why?
Sometimes is makes sense for content to enter and leave the DOM. For example for accessibility, you can use the `autofocus` attribute to declaratively focus an element when it enters the DOM.

### How?
Add an `unmount` prop to the the transition components.

cc @Eldwick

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.