Skip to content

Commit 6cdbcac

Browse files
committed
Move the button to the correct slot in the box
Correct the link to the box layout docs
1 parent 7c0f64d commit 6cdbcac

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

src/Our.Umbraco.UiExamples.v14/src/scripts/dashboards/welcome-dashboard.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ export default class UieWelcomeDashboard extends LitElement {
2929
<div>
3030
<h5 class="title">UI Examples<br/><span class="sub-header">Using the new backoffice</span></h5>
3131
</div>
32-
<div>
33-
<uui-button href="https://uui.umbraco.com/" target="_blank" look="primary" color="positive">
34-
<uui-badge slot="extra" label="A11Y label">!</uui-badge>
35-
<uui-icon name="info"></uui-icon>
36-
View the Storybook library</uui-button>
37-
</div>
32+
</div>
33+
<div slot="header-actions">
34+
<uui-button href="https://uui.umbraco.com/" target="_blank" look="primary" color="positive">
35+
<uui-badge slot="extra" label="A11Y label">!</uui-badge>
36+
<uui-icon name="info"></uui-icon>
37+
View the Storybook library</uui-button>
3838
</div>
3939
<slot>
4040
<p>This package is developed and maintained by the Umbraco Package Team. Contributions are welcome: <a href="https://github.com/umbraco/UI-Examples" target="_blank">visit the GitHub repository</a>.</p>

src/Our.Umbraco.UiExamples.v14/src/scripts/sections/box-layout-section.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,18 @@ export default class UieBoxLayoutSection extends LitElement {
1717
count = 0
1818

1919
render() {
20-
return html`
20+
return html`
2121
<uui-box>
2222
<div slot="header" class="header-bar">
2323
<div>
2424
<h5 class="title">Box<br/><span class="sub-header">A box for grouping elements</span></h5>
2525
</div>
26-
<div>
27-
<uui-button href="https://apidocs.umbraco.com/v14/ui/?path=/docs/uui_layout-box--docs" target="_blank" look="primary" color="positive">
28-
<uui-badge slot="extra" label="A11Y label">!</uui-badge>
29-
<uui-icon name="book-alt"></uui-icon>
30-
View the Storybook library</uui-button>
31-
</div>
26+
</div>
27+
<div slot="header-actions">
28+
<uui-button href="https://apidocs.umbraco.com/v14/ui/?path=/docs/uui_uui-box--docs" target="_blank" look="primary" color="positive">
29+
<uui-badge slot="extra" label="A11Y label">!</uui-badge>
30+
<uui-icon name="folder"></uui-icon>
31+
View the Storybook library</uui-button>
3232
</div>
3333
<slot>
3434
<p>This package is developed and maintained by the Umbraco Package Team. Contributions are welcome: <a href="https://github.com/umbraco/UI-Examples" target="_blank">visit the GitHub repository</a>.</p>
@@ -84,6 +84,6 @@ export default class UieBoxLayoutSection extends LitElement {
8484

8585
declare global {
8686
interface HTMLElementTagNameMap {
87-
'uie-box-layout-section': UieBoxLayoutSection
87+
'uie-box-layout-section': UieBoxLayoutSection
8888
}
8989
}

0 commit comments

Comments
 (0)