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

Consider allowing freezing pin state without freezing top/not top changes #393

Open
Ambient-Impact opened this issue Aug 6, 2021 · 0 comments

Comments

@Ambient-Impact
Copy link

On a project that I'm working on, we're using the top/not top to show or hide a shadow, so that the Headroom.js-enabled element only displays the shadow when not at the top, so that it blends nicely into the top of the site when not scrolled down. We're also pinning and freezing the instance when focus enters the element via the keyboard so that a user doesn't accidentally hide it if they scroll but are still expecting keyboard input to work (we've got a search field in there). The problem with freezing is as it currently exists is that it doesn't allow us to correctly showing or hiding the shadow if the element has keyboard focus, which can look a bit strange. Is there something I could be doing instead, or is this a feature you'd consider adding?

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

1 participant