Flashcards noncapitalising first letter in creation

villon's picture

Hello all,

Is there a way to prevent words from being capitalised at the beginning of words on the question/task page when using the content type flashcards?
I had created an exercise where verbs are presented in the infinitive and should be entered in the past tense on the answer page. Unfortunately, the content type always converted the infinitive form the lower case letter to a capital letter. I would be grateful for any hints.

BV52's picture

Hi villon,

Unfortunately, this has not been resolved yet: https://h5ptechnology.atlassian.net/browse/HFP-2091

-BV

otacke's picture

Hi all!

It's quite amazing that over 5 years have passed at least and nobody has ever fixed this - not amazing in a good way.

Please find the few lines of code required wrapped in a pull request at https://github.com/h5p/h5p-flashcards/pull/114. Please also find the ticket that has been created in H5P Group's ticket repository that you can use to track progress.

Best,
Oliver

villon's picture

Hello Oliver,

thank you Oliver for the answer and the information.
Then I guess I will have to wait.

Greetings

villon

otacke's picture

If you need a fix right away and can add CSS overrides, you can override the stylesheet class that I have removed in the source code, too.

villon's picture

Long time since my last posting and there is no solution for me right now. I've tried to change the part of flashcards.css with the developer tools of lumi localy. After saving the changes there were no changes in the capitalising of the first sight of cards. After changing this part from }

.h5p-flashcards .h5p-imagetext:first-letter {
  text-transform: upper;
}
to }

.h5p-flashcards .h5p-imagetext:first-letter {
  text-transform: none;
}
there was no change.

Any suggestions?

Regards

otacke's picture

Can you confirm that your custom CSS is applied at all and after the original CSS is set? You can easily verify this in the browser's dev tools/element inspector.

villon's picture

Sorry Oliver. I'm probably too untalented for that. For me, it's more like poking around in the fog. Just trying things out. Installed Chrome to check with its developer tools. It worked for the first map I changed, but unfortunately the changes were not visible on the second map I added. I'm more on the content creation side by the looks of it.

Greetings