H5P Core/Moodle plugin: Tooltip can overflow viewport and can be hidden underneath other elements

Description

Steps to reproduce

  1. Use an H5P integration that features a version of H5P Core that contains the H5P.Tooltip class (should only be the H5P plugin for moodle and moodle’s custom H5P integration into moodle core). That’s Can be moodle’s sandbox, too.

  2. Create a Question Set with at least two exercises and view it.

  3. Hover the Check button. Reduce the viewport width if required.

  4. Observe the tooltip positioning (the next button is on top) and sizing (the viewport is overflown and the tooltip text cut off)

Background

The H5P.Tooltip class was introduced in to solve the problems that the title attribute can cause for screen readers.

It does not seem to be released for any of H5P Group’s H5P integrations except for the H5P plugin for moodle. Other H5P integrations are using it as well, because a tagged and released version of H5P core suggests it could be used. Among those are at least moodle’s custom H5P integration in moodle core and Edlib run by NDLA.

Environment

None

Acceptance Criteria

None

Attachments

2

Activity

Details

Assignee

Reporter

Priority

Created October 31, 2023 at 2:57 PM
Updated April 9, 2024 at 4:38 PM