Skip to content

Commit

Permalink
Merge branch 'MDL-73836' of https://github.com/paulholden/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
stronk7 committed Feb 10, 2022
2 parents 8349758 + 14b6334 commit 057a21e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion reportbuilder/classes/local/report/action.php
Expand Up @@ -118,7 +118,12 @@ public function get_action_link(stdClass $row): ?string {
);

$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';
Expand Down

0 comments on commit 057a21e

Please sign in to comment.