mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 17:02:03 +02:00
Merge branch 'MDL-73836' of https://github.com/paulholden/moodle
This commit is contained in:
commit
057a21e381
@ -118,7 +118,12 @@ final class action {
|
||||
);
|
||||
|
||||
$this->attributes['role'] = 'button';
|
||||
$this->attributes['title'] = $this->attributes['aria-label'] = (string) $this->title;
|
||||
|
||||
// Ensure we have a title attribute set, if one wasn't already provided.
|
||||
if (!array_key_exists('title', $this->attributes)) {
|
||||
$this->attributes['title'] = (string) $this->title;
|
||||
}
|
||||
$this->attributes['aria-label'] = $this->attributes['title'];
|
||||
|
||||
if ($this->popup) {
|
||||
$this->attributes['data-action'] = 'report-action-popup';
|
||||
|
Loading…
x
Reference in New Issue
Block a user