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

feat: add prop alwaysScrolled to header #716

Merged

Conversation

mato-a
Copy link
Contributor

@mato-a mato-a commented Dec 2, 2021

Add property alwaysScrolled to header

If this prop is set to true header will be always thin even if the page was not scrolled down.

Class header--sticky will be added always to the header.

This is useful for example in fullscreen mode where I'd like to make the navbar as small as possible.

@mato-a mato-a requested a review from nowseemee as a code owner December 2, 2021 13:05
@nowseemee
Copy link
Collaborator

Thanks for your PR! 🎉 🎉 🎉
I'll discuss this with the team and come back to you soon.

Copy link
Collaborator

@nowseemee nowseemee left a comment

Choose a reason for hiding this comment

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

Thanks a lot for your PR! I'd like you to change the name of the prop to sticky and also add this to app-shell and pass it down to app-header.

@nowseemee
Copy link
Collaborator

Thanks for adding your changes. Can you please run yarn build in the components package and commit the changes? Many thanks for all your contributions!

@nowseemee nowseemee merged commit 1982411 into telekom:main Dec 6, 2021
@mato-a mato-a deleted the feat/add-prop-always-scrolled-to-header branch December 6, 2021 09:31
@nowseemee
Copy link
Collaborator

thanks a lot @mato-a - i'll publish this to NPM today and let you know ✌🏻

@mato-a
Copy link
Contributor Author

mato-a commented Dec 6, 2021

@nowseemee great 👍

Thanks for guidance 😉

@nowseemee
Copy link
Collaborator

@mato-a, it's released: 3.0.0-beta.33

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.

2 participants