FMCorz/moodle-block_xp

data-aria-autofocus is causing page to jump

sharpchi opened this issue · 1 comments

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.

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.