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

feat: display question content as grid #328

Merged
merged 8 commits into from
Oct 16, 2023

Conversation

henriettemoe
Copy link
Collaborator

@henriettemoe henriettemoe commented Oct 12, 2023

  • Lines up the source and target words in separate columns in a grid. The word utils createFillInString and createDragTextString have been changed to ensure that this is possible. In H5P.Blanks the source words are now placed inside their own span so it is easier to add css to it.

  • Adds a line between each row in the grid to make it easier for users to connect the source and targets words (if there is a lot of space between them). Could potentially use a color with more contrast to the background color to enhance it even more if needed.

  • Makes the input fields in H5P.Blanks the same width. Note that this is a fixed width and that the input will not change width based on the input text as before. The fixed width should be tested to see if it is suitable.

  • Adds overflow-x: auto to the content to ensure that it is visible and reachable on mobile if there are some really long words. This is mostly a concern when checking answers and the grid takes up more of the width. Since the content is now displayed in a grid it will not be as responsive on its own anymore. We could also look at wrapping the content instead of enabling scroll, but it will require more time. Mobile accessibility should be tested more to ensure the best accessibility on this content type.

@github-actions
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.22
Main version: v1.0.22

@henriettemoe henriettemoe merged commit c55b088 into master Oct 16, 2023
5 checks passed
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.

3 participants