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

making the search header sticky #133

Open
Rajnish4444 opened this issue Nov 10, 2021 · 1 comment
Open

making the search header sticky #133

Rajnish4444 opened this issue Nov 10, 2021 · 1 comment

Comments

@Rajnish4444
Copy link

It would be great if the search header part is sticky and the div all the countries are in a div with overflow-y set to scroll with max height like 40-50%. This would enhance the UI and usability a lot. Also increasing the time between first character input and auto-scroll should be increased since its confusing when user suddenly gets scrolled while typing the name of the country and have to scroll all the way to top

@shayanhussaini
Copy link

Try this quick fix for this issue:

Add this into your component.scss file

::ng-deep input {
&.country-search {
position: sticky;
top: 0;
background-color: #fff;
z-index: 9;
}
}

Demo: https://stackblitz.com/edit/github-kevfvw-6xwbwc

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

No branches or pull requests

2 participants