fix menu spacing (#978)

* fix menu spacing

* fix relative links in HTML files

* fix relative links in HTML files
This commit is contained in:
Konnor Rogers
2025-05-21 15:33:59 -04:00
committed by GitHub
parent 37e82b70fa
commit 7253ed8ab0
4 changed files with 5 additions and 5 deletions

View File

@@ -1,5 +1,5 @@
<div id="page_slots_demo">
<link rel="stylesheet" href="./demo.css">
<link rel="stylesheet" href="/docs/components/page/demo.css">
{% set slots = components.page.slots %}
<fieldset id="page_slots_fieldset">
@@ -22,5 +22,5 @@
<script type="module">
const cacheBust = new Date().toString()
import(`./demo.js?${cacheBust}`)
import(`/docs/components/page/demo.js?${cacheBust}`)
</script>

View File

@@ -45,7 +45,7 @@ table code {
}
}
</script>
<script type="module" src="./cheatsheet.js"></script>
<script type="module" src="/docs/components/cheatsheet.js"></script>
{% for type, all in componentsBy -%}
{% set typeTitle = "CSS custom properties" if type == "cssProperty" else ("CSS parts" if type == "cssPart" else (type | title) + "s") %}

View File

@@ -14,7 +14,7 @@ wa-page {
}
}
:is([slot='banner'], [slot='header'], [slot='subheader'], [slot='footer'], [slot*='navigation']) {
:is([slot='banner'], [slot='header'], [slot='subheader'], [slot='footer'], [slot*='navigation'], [slot='menu']) {
margin-inline-start: var(--wa-space-xs);
}

View File

@@ -7,7 +7,7 @@ let stylesheets = Array.from(document.querySelectorAll("link[rel=stylesheet][hre
.join('\n');
let includes = `${stylesheets}
<script src="/dist/webawesome.loader.js" type="module"></script>
<link rel="stylesheet" href="./demo-page.css">`;
<link rel="stylesheet" href="/docs/components/page/demo-page.css">`;
async function render() {
await customElements.whenDefined('wa-checkbox');