Skip to content
Snippets Groups Projects
Commit 9dfc8b7b authored by Thomas Hackl's avatar Thomas Hackl
Browse files

Resolve "Dialogtitel sind nicht als Überschrift gekennzeichnet und nicht modal"

Closes #4038

Merge request studip/studip!2891
parent 3d0851ab
No related branches found
No related tags found
No related merge requests found
......@@ -386,7 +386,12 @@ Dialog.show = function(content, options = {}) {
.before(element);
}
$(this).parent().find('.ui-dialog-title').attr('title', options.title);
$(this).parent().find('.ui-dialog-title').attr({
title: options.title,
role: 'heading',
'aria-level': 2
});
$(this).parents('.studip-dialog').attr('aria-modal', 'true');
instance.open = true;
// Execute scripts
......
......@@ -38,7 +38,11 @@
<header
class="studip-dialog-header"
>
<span :id="dialogTitleId" class="studip-dialog-title" :title="dialogTitle">
<span :id="dialogTitleId"
class="studip-dialog-title"
:title="dialogTitle"
role="heading"
aria-level="2">
{{ dialogTitle }}
</span>
<slot name="dialogHeader"></slot>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment