Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RFR] Replace Headroom by native Material-ui solution #3247

Merged
merged 5 commits into from
May 20, 2019
Merged

Conversation

fzaninotto
Copy link
Member

Material-ui v4 offers a native solution for an app bar that hides on scroll. We can therefore get rid of react-headroom.

The visual effect is unchanged.

@fzaninotto fzaninotto added this to the 3.0.0 milestone May 19, 2019
@fzaninotto fzaninotto mentioned this pull request May 19, 2019
40 tasks
Copy link
Contributor

@djhi djhi left a comment

Choose a reason for hiding this comment

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

Nice 👍 Just need to fix the tests relying on headroom css classes

Copy link
Contributor

@Kmaschta Kmaschta left a comment

Choose a reason for hiding this comment

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

It's not everyday that we can remove a dependency! 🎉

There is no way to test the auto-hide appbar other than by inspecting the style prop, and the feature is provided by material-ui, so we don't need to test it.
@djhi djhi merged commit bd594bb into next May 20, 2019
@djhi djhi deleted the remove-headroom branch May 20, 2019 10:15
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.

None yet

3 participants