FMCorz / moodle-block_xp

A gamification plugin for Moodle allowing students to gain experience points and level up.
https://levelup.plus/?ref=github
150 stars 41 forks source link

data-aria-autofocus is causing page to jump #99

Closed sharpchi closed 4 years ago

sharpchi commented 4 years ago

Using M3.6 and Boost with v3.7 of your plugin, we're finding that the page is scrolling down on page load (as if it was going to a bookmark). I think it's to do with the data-aria-autofocus property on the blue alert-info box. image To test add a few blocks above the XP block to push it below the cut. Turn off editing and reload the page. If I empty the Introduction setting (block_xp | description) the page doesn't jump.

FMCorz commented 4 years ago

Thank you for your report @sharpchi, we had not noticed this. This seems to be part of recent changes in Moodle to improve accessibility. Level up! uses this Moodle component to maintain UI consistency and facilitate theming. We will look at fixing this issue.