Skip to content
Snippets Groups Projects
Commit 014efac0 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 ec645615
No related branches found
No related tags found
No related merge requests found
...@@ -386,7 +386,12 @@ Dialog.show = function(content, options = {}) { ...@@ -386,7 +386,12 @@ Dialog.show = function(content, options = {}) {
.before(element); .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; instance.open = true;
// Execute scripts // Execute scripts
......
...@@ -38,7 +38,11 @@ ...@@ -38,7 +38,11 @@
<header <header
class="studip-dialog-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 }} {{ dialogTitle }}
</span> </span>
<slot name="dialogHeader"></slot> <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