Skip to content

Commit cefaa69

Browse files
RAV: Fix to display button text as 'Save' for M5.0
1 parent fd22812 commit cefaa69

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

renderer.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ public function controls(question_attempt $qa, question_display_options $options
4040
// For before MDL-78874 was done.
4141
html_writer::attribute('value', get_string('check', 'question')) =>
4242
html_writer::attribute('value', get_string('saveandfeedback', 'qbehaviour_selfassess')),
43+
// For after MDL-81825 was done. Bootstrap 5 uses 'visually-hidden' instead of 'sr-only'.
44+
'>' . get_string('check', 'question') . ' <span class="visually-hidden"' =>
45+
'>' . get_string('saveandfeedback', 'qbehaviour_selfassess') . '<span class="visually-hidden"',
4346
// For after MDL-78874 was done.
4447
'>' . get_string('check', 'question') . ' <span class="sr-only"' =>
4548
'>' . get_string('saveandfeedback', 'qbehaviour_selfassess') . '<span class="sr-only"',

0 commit comments

Comments
 (0)