MOBILE-4470 lesson: Fix correct answers when teacher reviews

main
Dani Palou 2024-05-29 12:34:26 +02:00
parent f1ccc63795
commit b7beaead0c
2 changed files with 3 additions and 2 deletions

View File

@ -469,7 +469,7 @@ export class AddonModLessonHelperProvider {
let input = element.querySelector<HTMLInputElement>('input[type="checkbox"][name*="answer"]');
if (input) {
// Truefalse or multichoice.
const successBadge = element.querySelector<HTMLElement>('.badge.badge-success');
const successBadge = element.querySelector<HTMLElement>('.badge.bg-success, .badge.badge-success');
const data: AddonModLessonCheckboxAnswerData = {
isCheckbox: true,
checked: !!input.checked,

View File

@ -83,7 +83,8 @@ html[dir=rtl] {
@each $color-name, $unused in $colors {
.text-#{$color-name},
p.text-#{$color-name} {
p.text-#{$color-name},
.text-#{$color-name} p {
color: var(--ion-color-#{$color-name}) !important;
}
}