-
Notifications
You must be signed in to change notification settings - Fork 9
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
Fix for sticky contents link overlap issue #1067
Conversation
* At foot of page was possible to get 'Contents' fixed position link to briefly overlap content below it * Problem was due to height of parent element including height of Contents link, then changing after it was set to position fixed * Fixed by defaulting Contents link to position absolute so it never adds any height to the parent
* CSS precedence was broken making contents link still be visible at top of page when it shouldn't have been
} | ||
} | ||
position: absolute; | ||
bottom: 0; | ||
|
||
&--stuck-to-parent { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this block used now? Can it be removed? I can't find any references to stuck-to-parent
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Needs a fix for mobile when JS isn't on/working
- Some unused CSS can now be removed
* Fixed styles so link appears correctly if JS disabled * Removed unnecessary class --stuck-to-parent
Have removed unnecessary CSS and fixed when JS disabled. |
Link behaves nicer now, top work 💯 👍 |
Relates to alphagov/government-frontend#367