Archived topic
[Minor GPP bug] Back to Top button focus hover color
11 replies · Started by George on June 26, 2020
Hi there. I have noticed a minor issue with the Back to Top button hover color which is particularly obvious on one-page websites utilizing Smooth Scroll.
I have documented the issue on my GP Knowledge Base along with the solution but I was wondering if it could be improved on the next GPP release.
Hey George,
This has been fixed in GPP 1.11.0 - alpha is coming soon :)
Thanks!
Ah, amazing, thank you, Tom!
No problem! Sorry it took so long :)
Hi Tom, I have just updated to GPP 1.11.0, the issue doesn't seem to be resolved, though.
Hey George,
Sorry for the confusion above! This fix is in the theme, not GPP. It's fixed in GP 3.0.
Ok, I see. But after I have updated to latest GPP 1.11.1, it works as expected now! I wonder why...
Ok, I stand corrected, it doesn't work. Strange, on one of my sites, I have introduced the generate_back_to_top_start_scroll filter:
add_filter( 'generate_back_to_top_start_scroll', 'tu_back_to_top_start_scroll' );
function tu_back_to_top_start_scroll() {
return 2000; // 2000px from the top
}
It works fine with the filter activated.
That's strange, it shouldn't.. The link is simply in focus after you click it, which is why the color remains. In 3.0, the javascript unfocuses the button once the top is reached.
Hmm, stange. Check the URL here, my online agency.
https://www.createadvanced.com/
Also checked in Incognito mode.
I'll dig into it a bit - wonder if there's something else on the page forcing focus to reset.
Probably, yeah. It doesn't matter Tom, I don't want to waist your time on this, better wait for 3.0, no problem.