Skip to content

Commit a8b72df

Browse files
fhelferabrahammordev
authored andcommitted
[FIX] #46870 UI: preserve role attributes of MainControls\MainBar content. (ILIAS-eLearning#10987)
* Fixes https://mantis.ilias.de/view.php?id=46870
1 parent ff33336 commit a8b72df

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

components/ILIAS/UI/resources/js/MainControls/src/mainbar.renderer.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,10 @@
9696

9797
element.attr('aria-hidden', false);
9898
//https://www.w3.org/TR/wai-aria-practices-1.1/examples/accordion/accordion.html
99-
element.attr('role', 'region');
100-
element.attr('aria-labelledby', triggerer_id);
101-
actions.focusSubentry(entry_id);
102-
99+
var currentRole = element.attr('role');
100+
if (!currentRole || currentRole === 'region') {
101+
element.attr('role', 'region');
102+
}
103103
if(isInView && !thrown) {
104104
element.trigger('in_view'); //this is most important for async loading of slates,
105105
//it triggers the GlobalScreen-Service.

0 commit comments

Comments
 (0)