Commit a50c1ab3 by Denis Chenu

[fix] Accessibility : hide scrollToTop to screnreader

parent 014dc6f0
......@@ -90,7 +90,7 @@ function noScrollOnSelect()
}
/* Add a little icon with Scroll to top : /!\ no text put inaccessible */
function addScrollTop(){
$("<a href='#' class='scrollToTop'>&nbsp;</a>").appendTo("body");
$("<a href='#' class='scrollToTop' aria-hidden='true'>&nbsp;</a>").appendTo("body");
$(window).scroll(function(){
if ($(this).scrollTop() > 100) {
$('.scrollToTop').fadeIn();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment