Mobile version is not loading the .correction class, so some hidden text appears in the mobile version.
Also the submit buttons seem to be missing, visually speaking, although they still work when pressed:
Mvolz | |
Mar 9 2017, 2:12 PM |
F6452746: tmp0faCyp-save.png | |
Mar 11 2017, 8:52 PM |
F6452832: tmp0hw5DD-save.png | |
Mar 11 2017, 8:52 PM |
F6452833: tmpAm482Q-save.png | |
Mar 11 2017, 8:52 PM |
F6369431: Screenshot from 2017-03-09 14:20:11.png | |
Mar 9 2017, 2:22 PM |
Mobile version is not loading the .correction class, so some hidden text appears in the mobile version.
Also the submit buttons seem to be missing, visually speaking, although they still work when pressed:
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Resolved | cristianbaldi | T159732 The quiz extension displays a "feedback" text, which should not appear by default, on mobile | |||
Resolved | None | T160070 Mobile version of wikiversity is not loading (some?) CSS |
Hello, just a wild guess from me. I worked a bit on the extension recently.
Could it be this line?
https://github.com/wikimedia/mediawiki-extensions-Quiz/blob/master/Quiz.class.php#L119
Edit: no sorry, does not make sense
Resources are loaded dynamically via PHP and not via resource loader and maybe that is not working on mobile
https://github.com/wikimedia/mediawiki-extensions-Quiz/blob/master/modules/ext.quiz.css
Sorry for linking to Github. I am on mobile at the moment
I suspect the ResourceLoader module that provides these styles does not have the target set correctly. See https://www.mediawiki.org/wiki/ResourceLoader/Writing_a_MobileFrontend_friendly_ResourceLoader_module. Apologies if this is not the problem.
You can also add the nomobile class to an element to avoid it from displaying in mobile.
I would be very surprised if this is related to MobileFrontend so I've removed that tag.
I figured out the issue.
The first problem is about not specifying the "target": "mobile" property in extension.json (which is an easy fix).
Even after fixing that there are still some issues: the style of some elements of the extension (such as the submit button and the input field) are overwritten by mobile front-end which resets them to plain, borderless, backgroundless elements (making the input fields even "invisible", see attached screenshot).
Now I need to hear some opinions on how to fix it.
I have in mind two options:
I prefer the second option.
For the first case you don't need to create a new hook. You can create a skin specific file, something like this.
I agree with you that adding the appropriate classes is a better solution.