Skip to content

Commit db39b55

Browse files
author
amandaesmith333
committed
docs(popover): use ion-content instead of div for wrappers
1 parent 177e0d3 commit db39b55

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

static/usage/popover/presenting/controller/react.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ function Example() {
1111
const [roleMsg, setRoleMsg] = useState('');
1212

1313
return (
14-
<div>
14+
<IonContent>
1515
<IonButton onClick={(e: any) => present({
1616
event: e,
1717
onDidDismiss: (e: CustomEvent) => setRoleMsg(`Popover dismissed with role: ${e.detail.role}`)
1818
})}>Click Me</IonButton>
1919
<p>{roleMsg}</p>
20-
</div>
20+
</IonContent>
2121
);
2222
}
2323
export default Example;

static/usage/popover/presenting/controller/vue/vue_main.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
```html
22
<template>
3-
<div>
3+
<ion-content>
44
<ion-button @click="openPopover">Click Me</ion-button>
55
<p>{{ roleMsg }}</p>
6-
</div>
6+
</ion-content>
77
</template>
88

99
<script lang="ts">
10-
import { IonButton, popoverController } from '@ionic/vue';
10+
import { IonButton, IonContent, popoverController } from '@ionic/vue';
1111
import Popover from './Popover.vue';
1212
1313
export default {
14-
components: { IonButton },
14+
components: { IonButton, IonContent },
1515
data() {
1616
return {
1717
roleMsg: ''

static/usage/popover/presenting/inline-trigger/react.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import React from 'react';
33
import { IonButton, IonContent, IonPopover } from '@ionic/react';
44
function Example() {
55
return (
6-
<div>
6+
<IonContent>
77
<IonButton id="click-trigger">Left-Click Me</IonButton>
88
<IonPopover trigger="click-trigger" triggerAction="click">
99
<IonContent class="ion-padding">Hello World!</IonContent>
@@ -18,7 +18,7 @@ function Example() {
1818
<IonPopover trigger="hover-trigger" triggerAction="hover">
1919
<IonContent class="ion-padding">Hello World!</IonContent>
2020
</IonPopover>
21-
</div>
21+
</IonContent>
2222
);
2323
}
2424
export default Example;

static/usage/popover/presenting/inline-trigger/vue.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
```html
22
<template>
3-
<div>
3+
<ion-content>
44
<ion-button id="click-trigger">Left-Click Me</ion-button>
55
<ion-popover trigger="click-trigger" trigger-action="click">
66
<ion-content class="ion-padding">Hello World!</ion-content>
@@ -15,7 +15,7 @@
1515
<ion-popover trigger="hover-trigger" trigger-action="hover">
1616
<ion-content class="ion-padding">Hello World!</ion-content>
1717
</ion-popover>
18-
</div>
18+
</ion-content>
1919
</template>
2020

2121
<script lang="ts">

0 commit comments

Comments
 (0)