Implement React refs to allow useScrollTrigger based AppBar elevation #30
Labels
enhancement
Request for a change to existing functionality
handoff
Issues that will not be fixed by the first webqueue2 team (after 7/16/21)
Material UI docs give an example for elevating an AppBar using a scroll trigger and this would be useful behavior to indicate when a user has scrolled past content. This can be achieved by creating a ref to the column content and passing that to a scroll trigger as the target. The scroll trigger can then be used to conditionally apply elevation.
Example:
At the moment, the ref being passed is becoming null. I'm not sure how to fix this and will fix an elevation level until a better solution can be found.
The text was updated successfully, but these errors were encountered: