Commit d5e084bc authored by Sara Arjona's avatar Sara Arjona Committed by Eloy Lafuente
Browse files

MDL-5311 qtype_multichoice: replace label to a for clean button

To avoid behat errors with Firefox, the 'Clean my choice' has been
changed from label to link (with role button).
parent 30513f97
......@@ -300,8 +300,8 @@ class qtype_multichoice_single_renderer extends qtype_multichoice_renderer_base
}
// Adds an hidden radio that will be checked to give the impression the choice has been cleared.
$clearchoiceradio = html_writer::empty_tag('input', $clearchoiceradioattrs);
$clearchoiceradio .= html_writer::tag('label', get_string('clearchoice', 'qtype_multichoice'),
['for' => $clearchoiceid]);
$clearchoiceradio .= html_writer::link('', get_string('clearchoice', 'qtype_multichoice'),
['for' => $clearchoiceid, 'role' => 'button']);
// Now wrap the radio and label inside a div.
$result = html_writer::tag('div', $clearchoiceradio, ['id' => $clearchoicefieldname, 'class' => $cssclass]);
......
......@@ -312,7 +312,7 @@ body.path-question-type {
}
.qtype_multichoice_clearchoice {
padding-top: 10px;
label {
a {
cursor: pointer;
text-decoration: underline;
padding-left: 30px;
......
......@@ -14030,7 +14030,7 @@ body.path-question-type {
.qtype_multichoice_clearchoice {
padding-top: 10px; }
.qtype_multichoice_clearchoice label {
.qtype_multichoice_clearchoice a {
cursor: pointer;
text-decoration: underline;
padding-left: 30px; }
......
......@@ -14281,7 +14281,7 @@ body.path-question-type {
.qtype_multichoice_clearchoice {
padding-top: 10px; }
.qtype_multichoice_clearchoice label {
.qtype_multichoice_clearchoice a {
cursor: pointer;
text-decoration: underline;
padding-left: 30px; }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment