diff --git a/docs/src/components/ComponentApi.svelte b/docs/src/components/ComponentApi.svelte index a34a89e2..8bce3d17 100644 --- a/docs/src/components/ComponentApi.svelte +++ b/docs/src/components/ComponentApi.svelte @@ -95,16 +95,18 @@ {type} {:else if type in typeMap} - {typeMap[type]} + {typeMap[type]} {:else if type.startsWith("(")} - {type} + {type} {:else} {/if} {/each} - {prop.value} + {prop.value} {#if prop.description} {#each prop.description.split("\n") as line} diff --git a/docs/src/global.css b/docs/src/global.css index 59bde722..fd8003b2 100644 --- a/docs/src/global.css +++ b/docs/src/global.css @@ -177,6 +177,13 @@ html[theme="g90"] .code-override { overflow-y: auto; } +.code-01 { + font-size: var(--cds-code-01-font-size); + font-weight: var(--cds-code-01-font-weight); + letter-spacing: var(--cds-code-01-letter-spacing); + line-height: var(--cds-code-01-line-height); +} + .body-short-01 { font-size: var(--cds-body-short-01-font-size); font-weight: var(--cds-body-short-01-font-weight); diff --git a/docs/src/pages/_layout.svelte b/docs/src/pages/_layout.svelte index 44a7e9cb..fa1074bb 100644 --- a/docs/src/pages/_layout.svelte +++ b/docs/src/pages/_layout.svelte @@ -50,8 +50,9 @@ - Carbon Components Svelte - v{process.env.VERSION || ""} + Carbon Components Svelte  v{process.env.VERSION || ""} @@ -135,15 +136,6 @@ align-items: baseline; } - .platform-name code { - margin-left: var(--cds-spacing-02); - font-size: var(--cds-code-01-font-size); - font-weight: var(--cds-code-01-font-weight); - letter-spacing: var(--cds-code-01-letter-spacing); - line-height: var(--cds-code-01-line-height); - color: #c6c6c6; - } - @media (max-width: 580px) { .platform-name code { display: none; diff --git a/docs/src/pages/components/ExpandableTile.svx b/docs/src/pages/components/ExpandableTile.svx index 680cac9d..56be8c24 100644 --- a/docs/src/pages/components/ExpandableTile.svx +++ b/docs/src/pages/components/ExpandableTile.svx @@ -3,7 +3,7 @@ source: Tile/ExpandableTile.svelte --- @@ -33,4 +33,24 @@ source: Tile/ExpandableTile.svelte
Above the fold content here
Below the fold content here
-
\ No newline at end of file + + +## With interactive content + +For tiles containing interactive content, use `stopPropagation` to prevent the tile from toggling. + + +
+ console.log("Hello world")}> + Native element + +

+ +
+
Below the fold content here
+
diff --git a/docs/src/pages/components/OverflowMenu.svx b/docs/src/pages/components/OverflowMenu.svx index 6cd63a93..d92f73a9 100644 --- a/docs/src/pages/components/OverflowMenu.svx +++ b/docs/src/pages/components/OverflowMenu.svx @@ -18,7 +18,9 @@ components: ["OverflowMenu", "OverflowMenuItem"] ## Flipped - +Set `flipped` to `true` for the menu to be positioned to the left of the button. + +