MDL-70829 theme_boost: Make context header icons decorative
commit49a37d198eacd201cfa53d069f4e08f357534091
authorJun Pataleta <jun@moodle.com>
Mon, 18 Mar 2024 13:15:15 +0000 (18 21:15 +0800)
committerJun Pataleta <jun@moodle.com>
Fri, 12 Apr 2024 03:21:03 +0000 (12 11:21 +0800)
treed6ae3d5a84d361b99b6efc1030d5ca54cfd2f8c7
parentb353535c0e72c59415925c7b5d438585c62dcbc9
MDL-70829 theme_boost: Make context header icons decorative

The non-empty alt text for the icons of the context header buttons like
the "Message" and the "Add contact" buttons cause redundant information
to be read twice by screen readers when the buttons are rendered with
the icon and the button name. The icons need to be set as decorative by
setting an empty alt text for them.
* The presentation role is also unnecessary.
* The alt text is needed when the button gets rendered without the
button name text.
message/templates/add_contact_button.mustache
message/templates/remove_contact_button.mustache
message/tests/behat/self_conversation.feature
theme/boost/classes/output/core_renderer.php