MDL-75684 mod_data: Update action icons

The edit icon has been replaced from a cog to a pencil.
Besides, the actions icons will be displayed using black colour.
This commit is contained in:
Sara Arjona
2022-10-24 13:01:39 +02:00
parent 046e48c49c
commit 9fbc24898b
2 changed files with 8 additions and 2 deletions
+2 -2
View File
@@ -240,9 +240,9 @@ class template {
* @return pix_icon[] icon name => pix_icon
*/
protected function get_icons() {
$attrs = ['class' => 'iconsmall'];
$attrs = ['class' => 'iconsmall dataicon'];
return [
'edit' => new pix_icon('t/edit', get_string('edit'), '', $attrs),
'edit' => new pix_icon('t/editinline', get_string('edit'), '', $attrs),
'delete' => new pix_icon('t/delete', get_string('delete'), '', $attrs),
'more' => new pix_icon('t/preview', get_string('more', 'data'), '', $attrs),
'approve' => new pix_icon('t/approve', get_string('approve', 'data'), '', $attrs),
+6
View File
@@ -162,6 +162,12 @@
max-width: 100%;
}
/* Legacy icons */
.dataicon,
.portfolio-add-icon {
color: var(--dark);
}
/* Preset preview styles */
#page-mod-data-preset .nopreview {
border: 1px solid var(--secondary);