mirror of
https://github.com/shoelace-style/webawesome.git
synced 2026-01-12 04:09:12 +00:00
Merge branch 'next' of https://github.com/shoelace-style/webawesome into next
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
<div class="options">
|
||||
{% for slot in slots %}
|
||||
{% if (slot.name != "skip-to-content") and (slot.name != "navigation-toggle-icon") %}
|
||||
<wa-checkbox name="slot" value="{{ slot.name }}" {{ 'checked' if slot.name != "menu" | safe}} class="{{ 'default' if not slot.name }}"
|
||||
<wa-checkbox name="slot" value="{{ slot.name }}" {{ 'checked' if slot.name != "menu" and slot.name != 'navigation-toggle' | safe}} class="{{ 'default' if not slot.name }}"
|
||||
data-description="{{ slot.description | inlineMarkdown }}" title="{{ slot.description | inlineMarkdown | striptags | safe }}">
|
||||
{{ slot.name or "(default)" }}
|
||||
</wa-checkbox>
|
||||
@@ -16,7 +16,7 @@
|
||||
</div>
|
||||
</fieldset>
|
||||
<wa-viewport-demo viewport="1000">
|
||||
<iframe srcdoc="" id="page_slots_iframe"></iframe>
|
||||
<iframe srcdoc="" id="page_slots_iframe" data-turbo="false" data-turbo-temporary></iframe>
|
||||
</wa-viewport-demo>
|
||||
</div>
|
||||
<script type=module src="/assets/examples/page-demo/demo.js"></script>
|
||||
|
||||
@@ -40,3 +40,11 @@ function render() {
|
||||
}
|
||||
fieldset?.addEventListener('input', render);
|
||||
render();
|
||||
|
||||
//
|
||||
// TODO - fix Turbo caching. When this is removed, visiting the <wa-page> docs via Turbo will cause the <iframe srcdoc>
|
||||
// to not render. Even with this, there are console errors when leaving the page.
|
||||
//
|
||||
// NOTE - the iframe already has `data-turbo="false"` and `data-turbo-temporary` on it.
|
||||
//
|
||||
document.body.setAttribute('data-turbo', 'false');
|
||||
|
||||
Reference in New Issue
Block a user