Skip to content

Commit

Permalink
realigns banneralerts template with Moodle core notifications templates.
Browse files Browse the repository at this point in the history
this adds a couple of a11y improvements and cool fade-in effect.
for comparison, see /lib/templates/notification_base.mustache
  • Loading branch information
stopfstedt committed Sep 25, 2024
1 parent e4c7fad commit 5dbe27f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion templates/banneralerts.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,9 @@
<div class="ucsf-banneralerts-container row pt-3">
{{#alerts}}
<div class="col-12">
<div class="alert alert-dismissible ucsf-banneralerts-alert {{classes}}"
<div class="alert alert-block fade in alert-dismissible ucsf-banneralerts-alert {{classes}}"
role="alert"
data-aria-autofocus="true"
data-ucsf-banneralerts-alert-id="{{id}}"
data-ucsf-banneralert-dismiss-callback-url="{{url}}"
>
Expand Down

0 comments on commit 5dbe27f

Please sign in to comment.