Skip to content

Commit be31db9

Browse files
author
Davide Marcoli
committed
fix: selector not working for six root docs
1 parent 2550362 commit be31db9

2 files changed

Lines changed: 15 additions & 15 deletions

File tree

docs/examples/docs-demo-six-root-0.vue

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,24 @@
44
<div class="six-root-wrapper">
55
<six-root stage="PROD" style="height: 100%" version="PROD-1.2.3">
66
<six-header slot="header">
7-
7+
88
<six-header-item>
9-
<six-icon-button name="menu"></six-icon-button>
9+
<six-icon-button id="menu-button" name="menu"></six-icon-button>
1010
</six-header-item>
1111

12-
12+
1313
<six-header-item>
1414
<six-icon-button href="https://six-group.github.io/six-webcomponents/">
1515
<six-logo></six-logo>
1616
</six-icon-button>
1717
</six-header-item>
1818

19-
19+
2020
<six-header-item id="search-header-item" style="margin-left: auto">
2121
<six-icon-button name="search"></six-icon-button>
2222
</six-header-item>
2323

24-
24+
2525
<six-header-dropdown-item>
2626
<six-icon-button slot="trigger">
2727
<six-avatar image="https://images.unsplash.com/photo-1529778873920-4da4926a72c2?ixlib=rb-1.2.1&auto=format&fit=crop&w=300&q=80"
@@ -36,7 +36,7 @@
3636
</six-menu>
3737
</six-header-dropdown-item>
3838

39-
39+
4040
<six-search-field slot="search-field" placeholder="Search for some 'a' ..." clearable>
4141
<div id="search-results">Some results</div>
4242
</six-search-field>
@@ -198,9 +198,9 @@
198198
<six-button slot="footer">Close</six-button>
199199
</six-drawer>
200200

201-
202-
203-
201+
202+
203+
204204
</div>
205205
</template>
206206
<style>
@@ -215,12 +215,12 @@
215215
content: '';
216216
height: 5rem;
217217
}
218-
218+
219219
</style>
220220
<script>
221221
export default {
222222
name: 'docs-demo-six-root-0',
223-
mounted() {
223+
mounted() {
224224
(() => {
225225
const getElements = (e) =>
226226
Object.entries(e).reduce(
@@ -242,7 +242,7 @@ export default {
242242
rightSidebar: 'six-sidebar[slot="right-sidebar"]',
243243
drawer: 'six-drawer',
244244
cards: ['six-sidebar[slot="right-sidebar"] six-card'],
245-
hamburger: 'six-icon-button[name="menu"]',
245+
hamburger: '#menu-button',
246246
searchItem: '#search-header-item',
247247
});
248248
@@ -269,4 +269,4 @@ export default {
269269
})();
270270
}
271271
}
272-
</script>
272+
</script>

libraries/ui-library/src/components/six-root/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ <h2>Basic Layout with all elements</h2>
2828
<six-header slot="header">
2929
<!-- hamburger menu -->
3030
<six-header-item>
31-
<six-icon-button name="menu"></six-icon-button>
31+
<six-icon-button id="menu-button" name="menu"></six-icon-button>
3232
</six-header-item>
3333

3434
<!-- logo -->
@@ -243,7 +243,7 @@ <h3>Task</h3>
243243
rightSidebar: 'six-sidebar[slot="right-sidebar"]',
244244
drawer: 'six-drawer',
245245
cards: ['six-sidebar[slot="right-sidebar"] six-card'],
246-
hamburger: 'six-icon-button[name="menu"]',
246+
hamburger: '#menu-button',
247247
searchItem: '#search-header-item',
248248
});
249249

0 commit comments

Comments
 (0)