Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Amend Drag Text dropzone aria label #378

Merged
merged 4 commits into from
Jan 2, 2024
Merged

Conversation

otacke
Copy link
Contributor

@otacke otacke commented Dec 19, 2023

When merged in, will amend the aria labels of Drag the Words' drop zones, so one knows what translation should be dropped.

Please note that I deliberately did not bump the patch version. Before rolling this out, the parameters that get passed via H5P core should be sanitized. In particular, the default values for translatable fields should be set. Otherwise, two things will happen:

  1. When installing this update, the newly added field will never have been set in existing content, thus be undefined, and the ARIA label would be amended with something like "[Missing translation for ...]".

  2. When using Vocabulary Drill as subcontent in compound content types which create content instances (for preview), e.g. Course Presentation, Vocabulary Drill will crash, because it will not be passed any parameters at all.

@otacke otacke requested a review from janlindso December 19, 2023 15:33
@otacke otacke force-pushed the override-dropzone-label branch from a266f7e to a5c7675 Compare December 19, 2023 15:51
Copy link

⚠️ H5P.VocabularyDrill's library version was not updated.
Add the label non-functional if this PR does not require a change of version numbers.

Current version: v1.0.27
Main version: v1.0.27

@janlindso janlindso merged commit 883ef8f into master Jan 2, 2024
5 checks passed
@otacke otacke deleted the override-dropzone-label branch February 28, 2024 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants