mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
fix: ExplainWhat popover
This commit is contained in:
parent
cb7b13f112
commit
cc02444e33
1 changed files with 15 additions and 4 deletions
|
@ -2,16 +2,21 @@
|
|||
<span class="explain-what">
|
||||
<slot name="default" />
|
||||
<span class="explain-what-popover-container">
|
||||
<BButton :id="id" href="#" variant="light">
|
||||
<BButton
|
||||
variant="light"
|
||||
@focus="open = true"
|
||||
@blur="open = false"
|
||||
@click="open = !open"
|
||||
>
|
||||
<YIcon iname="question" />
|
||||
<span class="sr-only">
|
||||
{{ $t('details_about', { subject: title }) }}
|
||||
</span>
|
||||
</BButton>
|
||||
<!-- FIXME missing prop `trigger` in bvn https://github.com/bootstrap-vue-next/bootstrap-vue-next/issues/1275 and looks like `placement` doesn't work -->
|
||||
<BPopover
|
||||
placement="auto"
|
||||
:target="id"
|
||||
triggers="focus"
|
||||
v-model="open"
|
||||
placement="top"
|
||||
custom-class="explain-what-popover"
|
||||
:variant="variant"
|
||||
:title="title"
|
||||
|
@ -38,6 +43,12 @@ export default {
|
|||
return Object.assign({ md: 4, xl: 3 }, this.cols)
|
||||
},
|
||||
},
|
||||
|
||||
data() {
|
||||
return {
|
||||
open: false,
|
||||
}
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
|
|
Loading…
Reference in a new issue