Skip to content

Fix current question text not passed to navigation component#189

Open
otacke wants to merge 2 commits into
h5p:masterfrom
otacke:fix-current-question-text-not-passed-to-navigation-component
Open

Fix current question text not passed to navigation component#189
otacke wants to merge 2 commits into
h5p:masterfrom
otacke:fix-current-question-text-not-passed-to-navigation-component

Conversation

@otacke

@otacke otacke commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

What kind of change does this PR introduce?
Bug fix 1: The aria label text to be assigned to the navigation bar's progress dot (currentQuestionText) is now passed to the navigation component.

Bug fix 2: The comparison for the progress type now uses the correct comparator === following the coding style guidelines.

What is the current behaviour?
When the progress dot of H5P.Components.ProgressDots tries to set the currentQuestionText on its ARIA label, it prints undefined, because it never received that text from H5P.Components.Navigation, because that in turn never received it from H5P.QuestionSet.

What is the new behaviour?
The aria label text to be assigned to the navigation bar's progress dot (currentQuestionText) is now passed to the navigation component and thus to the progress dot.

PR Checklist

Before submitting, please confirm:

  • I searched for existing issues/PRs first
  • I linked related issues/discussions
  • I tested my changes locally

Read the contribution guidelines to get your pr accepted more quickly.

@otacke otacke added the bug Something isn't working label Jun 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

Development

Successfully merging this pull request may close these issues.

1 participant