Skip to content
Snippets Groups Projects
Commit f59e6bd9 authored by Ron Lucke's avatar Ron Lucke
Browse files

fix #3829 for 5.5+

Closes #3829

Merge request studip/studip!2778
parent 25f31278
No related branches found
No related tags found
No related merge requests found
<template> <template>
<MountingPortal mountTo="body" append> <MountingPortal mountTo="body" append>
<focus-trap v-model="trap" :initial-focus="() => defaultFocus ? $refs.buttonB : null"> <focus-trap v-model="trap">
<div class="studip-dialog" @keydown.esc="closeDialog"> <div class="studip-dialog" @keydown.esc="closeDialog">
<transition name="dialog-fade"> <transition name="dialog-fade">
<div class="studip-dialog-backdrop"> <div class="studip-dialog-backdrop">
...@@ -262,5 +262,13 @@ export default { ...@@ -262,5 +262,13 @@ export default {
return typeof value !== "number" ? 0 : value; return typeof value !== "number" ? 0 : value;
} }
}, },
mounted() {
if (this.defaultFocus) {
this.$nextTick()
.then(() => {
this.$refs.buttonB.focus();
});
}
}
}; };
</script> </script>
...@@ -17,8 +17,8 @@ ...@@ -17,8 +17,8 @@
class="cw-timeline-item" class="cw-timeline-item"
> >
<div class="cw-timeline-item-icon cw-timeline-item-icon-color-studip-blue"> <div class="cw-timeline-item-icon cw-timeline-item-icon-color-studip-blue">
<studip-icon v-if="item.type === 'school'" shape="doctoral-cap" role="clickable" size="32"/> <studip-icon v-if="item.type === 'school'" shape="doctoral-cap" role="clickable" :size="32"/>
<studip-icon v-if="item.type === 'experience'" shape="tools" role="clickable" size="32"/> <studip-icon v-if="item.type === 'experience'" shape="tools" role="clickable" :size="32"/>
</div> </div>
<div <div
class="cw-timeline-item-content cw-timeline-item-content-color-studip-blue" class="cw-timeline-item-content cw-timeline-item-content-color-studip-blue"
......
...@@ -113,7 +113,7 @@ ...@@ -113,7 +113,7 @@
> >
<template #open-indicator="selectAttributes"> <template #open-indicator="selectAttributes">
<span v-bind="selectAttributes" <span v-bind="selectAttributes"
><studip-icon shape="arr_1down" size="10" ><studip-icon shape="arr_1down" :size="10"
/></span> /></span>
</template> </template>
<template #no-options> <template #no-options>
...@@ -141,7 +141,7 @@ ...@@ -141,7 +141,7 @@
> >
<template #open-indicator="selectAttributes"> <template #open-indicator="selectAttributes">
<span v-bind="selectAttributes" <span v-bind="selectAttributes"
><studip-icon shape="arr_1down" size="10" ><studip-icon shape="arr_1down" :size="10"
/></span> /></span>
</template> </template>
<template #no-options> <template #no-options>
......
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
v-model="currentColor" v-model="currentColor"
> >
<template #open-indicator="selectAttributes"> <template #open-indicator="selectAttributes">
<span v-bind="selectAttributes"><studip-icon shape="arr_1down" size="10" /></span> <span v-bind="selectAttributes"><studip-icon shape="arr_1down" :size="10" /></span>
</template> </template>
<template #no-options> <template #no-options>
{{ $gettext('Es steht keine Auswahl zur Verfügung.') }} {{ $gettext('Es steht keine Auswahl zur Verfügung.') }}
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
{{ $gettext('Icon') }} {{ $gettext('Icon') }}
<studip-select :options="icons" :clearable="false" v-model="currentIcon"> <studip-select :options="icons" :clearable="false" v-model="currentIcon">
<template #open-indicator="selectAttributes"> <template #open-indicator="selectAttributes">
<span v-bind="selectAttributes"><studip-icon shape="arr_1down" size="10" /></span> <span v-bind="selectAttributes"><studip-icon shape="arr_1down" :size="10" /></span>
</template> </template>
<template #no-options> <template #no-options>
{{ $gettext('Es steht keine Auswahl zur Verfügung.') }} {{ $gettext('Es steht keine Auswahl zur Verfügung.') }}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment