MDL-70829 core: Remove presentation role for decorative images
* An image with non-empty alt text should not have a presentation role. * An empty alt attribute is sufficient for decorative images. No need to add a presentation role for them. * Additionally, if there is already text that is present for an image, there's no need to add an alt text with the same text. Such images are decorative and should just have an empty alt text.
This commit is contained in:
+1
-1
@@ -11067,7 +11067,7 @@ class admin_setting_php_extension_enabled extends admin_setting {
|
||||
|
||||
$o = '';
|
||||
if (!extension_loaded($this->extension)) {
|
||||
$warning = $OUTPUT->pix_icon('i/warning', '', '', array('role' => 'presentation')) . ' ' . $this->description;
|
||||
$warning = $OUTPUT->pix_icon('i/warning', '') . ' ' . $this->description;
|
||||
|
||||
$o .= format_admin_setting($this, $this->visiblename, $warning);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user