Skip to content

Commit

Permalink
Add css class and style for Excel icon for export of participants for #…
Browse files Browse the repository at this point in the history
  • Loading branch information
haietza committed Mar 15, 2024
1 parent a6dddce commit 9d219ac
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion participants.php
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@
'export' => 'xls',
]);
$xlsstring = get_string('application/vnd.ms-excel', 'mimetypes');
$xlsicon = html_writer::img($OUTPUT->image_url('f/spreadsheet'), $xlsstring, ['title' => $xlsstring]);
$xlsicon = html_writer::img($OUTPUT->image_url('f/spreadsheet'), $xlsstring, ['title' => $xlsstring, 'class' => 'mimetypeicon']);
echo get_string('export', 'mod_zoom') . ': ' . html_writer::link($exporturl, $xlsicon);

echo $OUTPUT->footer();
Expand Down
5 changes: 5 additions & 0 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,8 @@
border: none;
}

#page-mod-zoom-participants .mimetypeicon {
width: 24px;
height: 24px;
}

0 comments on commit 9d219ac

Please sign in to comment.