Skip to content

Commit 6388975

Browse files
authored
docs(Page): nest footer in div (#6728)
Related issue: UI5/webcomponents#10358
1 parent 6ee78e6 commit 6388975

File tree

1 file changed

+14
-13
lines changed

1 file changed

+14
-13
lines changed

packages/main/src/webComponents/Page/Page.stories.tsx

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,24 +16,25 @@ const meta = {
1616
header: (
1717
<Bar
1818
design={BarDesign.Header}
19-
startContent={<Button icon="home" title="Go Home" />}
20-
endContent={<Button icon="settings" title="Go to Settings" />}
19+
startContent={<Button icon="home" title="Go Home" accessibleName="Home" />}
20+
endContent={<Button icon="settings" title="Go to Settings" accessibleName="Settings" />}
2121
>
2222
<Label>Title</Label>
2323
</Bar>
2424
),
2525
footer: (
26-
<Bar
27-
design={BarDesign.FloatingFooter}
28-
startContent={<Button icon="home" title="Go Home" />}
29-
endContent={
30-
<>
31-
<Button design={ButtonDesign.Positive}>Accept</Button>
32-
<Button design={ButtonDesign.Negative}>Decline</Button>
33-
<Button design={ButtonDesign.Transparent}>Cancel</Button>
34-
</>
35-
}
36-
/>
26+
<div>
27+
<Bar
28+
design={BarDesign.FloatingFooter}
29+
endContent={
30+
<>
31+
<Button design={ButtonDesign.Positive}>Accept</Button>
32+
<Button design={ButtonDesign.Negative}>Decline</Button>
33+
<Button design={ButtonDesign.Transparent}>Cancel</Button>
34+
</>
35+
}
36+
/>
37+
</div>
3738
)
3839
},
3940
argTypes: {

0 commit comments

Comments
 (0)