diff options
| author | Ron Lucke <lucke@elan-ev.de> | 2024-01-23 16:17:27 +0000 |
|---|---|---|
| committer | Ron Lucke <lucke@elan-ev.de> | 2024-01-23 16:17:27 +0000 |
| commit | fdce226282d2421c9cea33e97b0a9c4682f27495 (patch) | |
| tree | cf963c6086669f98b5bd555a52616bd016c277ff | |
| parent | 82a44222165d43bd2345b8f7d43c9bbe592d0c0e (diff) | |
fix #2674
Closes #2674
Merge request studip/studip!1878
| -rw-r--r-- | resources/vue/components/courseware/layouts/CoursewareCompanionOverlay.vue | 23 |
1 files changed, 16 insertions, 7 deletions
diff --git a/resources/vue/components/courseware/layouts/CoursewareCompanionOverlay.vue b/resources/vue/components/courseware/layouts/CoursewareCompanionOverlay.vue index 47bd5e2..ff177f7 100644 --- a/resources/vue/components/courseware/layouts/CoursewareCompanionOverlay.vue +++ b/resources/vue/components/courseware/layouts/CoursewareCompanionOverlay.vue @@ -1,11 +1,20 @@ <template> - <div - class="cw-companion-overlay" - :class="[showCompanion ? 'cw-companion-overlay-in' : '', showCompanion ? '' : 'cw-companion-overlay-out', styleCompanion]" - :aria-hidden="!showCompanion" - > - <div class="cw-companion-overlay-content" v-html="msgCompanion"></div> - <button class="cw-compantion-overlay-close" @click="hideCompanion"></button> + <div class="cw-companion-overlay-wrapper"> + <div + class="cw-companion-overlay" + :class="[showCompanion ? 'cw-companion-overlay-in' : '', showCompanion ? '' : 'cw-companion-overlay-out', styleCompanion]" + aria-hidden="true" + > + <div class="cw-companion-overlay-content" v-html="msgCompanion"></div> + <button class="cw-compantion-overlay-close" @click="hideCompanion"></button> + </div> + <div + class="sr-only" + aria-live="polite" + role="log" + > + <p>{{ msgCompanion }}</p> + </div> </div> </template> |
