@@ -11,15 +11,15 @@ other_frameworks: popover
1111
1212::: demo
1313<CPopover title =" Popover title " content =" And here\’s some amazing content. It’s very engaging. Right? " placement =" right " >
14- <template #toggler="{ on }">
15- <CButton color =" danger " size =" lg " v-on =" on " >Click to toggle popover</CButton >
14+ <template #toggler="{id, on }">
15+ <CButton color =" danger " size =" lg " :aria-describedby = " id " v-on =" on " >Click to toggle popover</CButton >
1616 </template >
1717</CPopover >
1818:::
1919``` vue
2020<CPopover title="Popover title" content="And here\’s some amazing content. It’s very engaging. Right?" placement="right">
21- <template #toggler="{ on }">
22- <CButton color="danger" size="lg" v-on="on">Click to toggle popover</CButton>
21+ <template #toggler="{id, on }">
22+ <CButton color="danger" size="lg":aria-describedby="id" v-on="on">Click to toggle popover</CButton>
2323 </template>
2424</CPopover>
2525```
@@ -41,45 +41,45 @@ Four options are available: top, right, bottom, and left aligned. Directions are
4141
4242::: demo
4343<CPopover content =" Vivamus sagittis lacus vel augue laoreet rutrum faucibus " placement =" top " >
44- <template #toggler="{ on }">
45- <CButton color =" secondary " v-on =" on " >Popover on top</CButton >
44+ <template #toggler="{id, on }">
45+ <CButton color =" secondary " :aria-describedby = " id " v-on =" on " >Popover on top</CButton >
4646 </template >
4747</CPopover >
4848<CPopover content =" Vivamus sagittis lacus vel augue laoreet rutrum faucibus " placement =" right " >
49- <template #toggler="{ on }">
50- <CButton color =" secondary " v-on =" on " >Popover on right</CButton >
49+ <template #toggler="{id, on }">
50+ <CButton color =" secondary " :aria-describedby = " id " v-on =" on " >Popover on right</CButton >
5151 </template >
5252</CPopover >
5353<CPopover content =" Vivamus sagittis lacus vel augue laoreet rutrum faucibus " placement =" bottom " >
54- <template #toggler="{ on }">
55- <CButton color =" secondary " v-on =" on " >Popover on bottom</CButton >
54+ <template #toggler="{id, on }">
55+ <CButton color =" secondary " :aria-describedby = " id " v-on =" on " >Popover on bottom</CButton >
5656 </template >
5757</CPopover >
5858<CPopover content =" Vivamus sagittis lacus vel augue laoreet rutrum faucibus " placement =" left " >
59- <template #toggler="{ on }">
60- <CButton color =" secondary " v-on =" on " >Popover on left</CButton >
59+ <template #toggler="{id, on }">
60+ <CButton color =" secondary " :aria-describedby = " id " v-on =" on " >Popover on left</CButton >
6161 </template >
6262</CPopover >
6363:::
6464``` vue
6565<CPopover content="Vivamus sagittis lacus vel augue laoreet rutrum faucibus" placement="top">
66- <template #toggler="{ on }">
67- <CButton color="secondary" v-on="on">Popover on top</CButton>
66+ <template #toggler="{id, on }">
67+ <CButton color="secondary":aria-describedby="id" v-on="on">Popover on top</CButton>
6868 </template>
6969</CPopover>
7070<CPopover content="Vivamus sagittis lacus vel augue laoreet rutrum faucibus" placement="right">
71- <template #toggler="{ on }">
72- <CButton color="secondary" v-on="on">Popover on right</CButton>
71+ <template #toggler="{id, on }">
72+ <CButton color="secondary":aria-describedby="id" v-on="on">Popover on right</CButton>
7373 </template>
7474</CPopover>
7575<CPopover content="Vivamus sagittis lacus vel augue laoreet rutrum faucibus" placement="bottom">
76- <template #toggler="{ on }">
77- <CButton color="secondary" v-on="on">Popover on bottom</CButton>
76+ <template #toggler="{id, on }">
77+ <CButton color="secondary":aria-describedby="id" v-on="on">Popover on bottom</CButton>
7878 </template>
7979</CPopover>
8080<CPopover content="Vivamus sagittis lacus vel augue laoreet rutrum faucibus" placement="left">
81- <template #toggler="{ on }">
82- <CButton color="secondary" v-on="on">Popover on left</CButton>
81+ <template #toggler="{id, on }">
82+ <CButton color="secondary":aria-describedby="id" v-on="on">Popover on left</CButton>
8383 </template>
8484</CPopover>
8585```
@@ -110,8 +110,8 @@ You can customize the appearance of popovers using [CSS variables](#css-variable
110110 title="Custom popover"
111111: style ="customPopoverStyle"
112112>
113- <template #toggler="{ on }">
114- <CButton color="secondary" v-on="on"> Custom popover</CButton >
113+ <template #toggler="{id, on }">
114+ <CButton color="secondary":aria-describedby="id" v-on="on"> Custom popover</CButton >
115115 </template>
116116 </CPopover>
117117 :::
@@ -123,8 +123,8 @@ You can customize the appearance of popovers using [CSS variables](#css-variable
123123 title="Custom popover"
124124 :style="customPopoverStyle"
125125 >
126- <template #toggler="{ on }">
127- <CButton color="secondary" v-on="on">Custom popover</CButton>
126+ <template #toggler="{id, on }">
127+ <CButton color="secondary":aria-describedby="id" v-on="on">Custom popover</CButton>
128128 </template>
129129 </CPopover>
130130</template>
@@ -160,8 +160,8 @@ For disabled popover triggers, you may also prefer `:trigger="['hover', 'focus']
160160 placement="right"
161161: trigger ="[ 'hover', 'focus'] "
162162>
163- <template #toggler="{ on }">
164- <span :tabindex="0" v-on="on">
163+ <template #toggler="{id, on }">
164+ <span :tabindex="0":aria-describedby="id" v-on="on">
165165 <CButton color="primary" disabled> Disabled button</CButton >
166166 </span>
167167 </template>
@@ -173,8 +173,8 @@ For disabled popover triggers, you may also prefer `:trigger="['hover', 'focus']
173173 placement="right"
174174 :trigger="['hover', 'focus']"
175175>
176- <template #toggler="{ on }">
177- <span :tabindex="0" v-on="on">
176+ <template #toggler="{id, on }">
177+ <span :tabindex="0":aria-describedby="id" v-on="on">
178178 <CButton color="primary" disabled>Disabled button</CButton>
179179 </span>
180180 </template>