mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 12:32:08 +02:00
MDL-72412 core: Add the image role to informative icon fonts
This commit is contained in:
parent
e78184d827
commit
0b2032cb1e
@ -101,6 +101,6 @@ class printable_test extends \advanced_testcase {
|
||||
$object->set_filter($filter);
|
||||
$output = $object->get_output();
|
||||
$this->assertStringContainsString('<i class="icon fa fa-tachometer fa-fw " title="Total activities" '.
|
||||
'aria-label="Total activities">', $output);
|
||||
'role="img" aria-label="Total activities">', $output);
|
||||
}
|
||||
}
|
||||
|
@ -43,7 +43,7 @@
|
||||
|
||||
}}
|
||||
{{^unmappedIcon}}
|
||||
<i class="icon fa {{key}} fa-fw {{extraclasses}}" {{#aria-hidden}}aria-hidden="true"{{/aria-hidden}} {{#title}}title="{{title}}"{{/title}} {{#alt}}aria-label="{{alt}}"{{/alt}}></i>
|
||||
<i class="icon fa {{key}} fa-fw {{extraclasses}}" {{#aria-hidden}}aria-hidden="true"{{/aria-hidden}} {{#title}}title="{{title}}"{{/title}} {{#alt}}role="img" aria-label="{{alt}}"{{/alt}}></i>
|
||||
{{/unmappedIcon}}
|
||||
{{#unmappedIcon}}
|
||||
{{! We cannot include the pix_icon template directly here because we don't have all the mustache helpers loaded. }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user