message stack close btn aria-label
Posted: Fri Jun 26, 2026 7:44 am
Hi
1.1.0.3
I have been trying to put a aria-label onto the close btn of message-alerts
Now, after an embarrassingly large number of hours spent searching for where this would be controlled, I finally (or at least think I) found the right place.
includes/classes/alert_block.php
I copied this file to
includes/system/override/alert_block.php
and changed this line to include the aria-label="Close"
But although technically it worked, i.e., the screen reader can read it
it put the button on a new line, justified to the left, and made it grey where it should look like, over on the right
Any pointers would be nice. There are a few message stacks throughout the site, and I am guessing all are controlled here.
Thank you
1.1.0.3
I have been trying to put a aria-label onto the close btn of message-alerts
Now, after an embarrassingly large number of hours spent searching for where this would be controlled, I finally (or at least think I) found the right place.
includes/classes/alert_block.php
I copied this file to
includes/system/override/alert_block.php
and changed this line to include the aria-label="Close"
Code: Select all
$alertBox_string .= ' <button type="button" class="close" data-dismiss="alert" aria-label="Close">×</button>' . "\n";it put the button on a new line, justified to the left, and made it grey where it should look like, over on the right
Any pointers would be nice. There are a few message stacks throughout the site, and I am guessing all are controlled here.
Thank you