diff --git a/COMPONENT_INDEX.md b/COMPONENT_INDEX.md index f00828c06e..527f49b8e3 100644 --- a/COMPONENT_INDEX.md +++ b/COMPONENT_INDEX.md @@ -1580,8 +1580,8 @@ None. | expandedByDefault | No | let | No | boolean | true | Set to `false` to hide the side nav by default | | uiShellAriaLabel | No | let | No | string | undefined | Specify the ARIA label for the header | | href | No | let | No | string | undefined | Specify the `href` attribute | -| company | No | let | No | string | undefined | Specify the company name.
Alternatively, use the named slot "company" (e.g., `<span slot="company">...</span>`) | -| platformName | No | let | No | string | "" | Specify the platform name.
Alternatively, use the named slot "platform" (e.g., `<span slot="platform">...</span>`) | +| company | No | let | No | string | undefined | Specify the company name.

Alternatively, use the named slot "company" (e.g., `<span slot="company">...</span>`) | +| platformName | No | let | No | string | "" | Specify the platform name.

Alternatively, use the named slot "platform" (e.g., `<span slot="platform">...</span>`) | | persistentHamburgerMenu | No | let | No | boolean | false | Set to `true` to persist the hamburger menu | | expansionBreakpoint | No | let | No | number | 1056 | The window width (px) at which the SideNav is expanded and the hamburger menu is hidden.
1056 represents the "large" breakpoint in pixels from the Carbon Design System:
- small: 320
- medium: 672
- large: 1056
- x-large: 1312
- max: 1584 | | iconMenu | No | let | No | typeof import("svelte").SvelteComponent | undefined | Specify the icon to render for the closed state.
Defaults to `<Menu size={20} />` | diff --git a/docs/src/COMPONENT_API.json b/docs/src/COMPONENT_API.json index 2ee1d7e52b..f886b410d7 100644 --- a/docs/src/COMPONENT_API.json +++ b/docs/src/COMPONENT_API.json @@ -4788,7 +4788,7 @@ { "name": "company", "kind": "let", - "description": "Specify the company name. \nAlternatively, use the named slot \"company\" (e.g., `...`)", + "description": "Specify the company name.\n\nAlternatively, use the named slot \"company\" (e.g., `...`)", "type": "string", "isFunction": false, "isFunctionDeclaration": false, @@ -4799,7 +4799,7 @@ { "name": "platformName", "kind": "let", - "description": "Specify the platform name.\nAlternatively, use the named slot \"platform\" (e.g., `...`)", + "description": "Specify the platform name.\n\nAlternatively, use the named slot \"platform\" (e.g., `...`)", "type": "string", "value": "\"\"", "isFunction": false, @@ -10367,7 +10367,7 @@ { "type": "forwarded", "name": "blur", "element": "select" } ], "typedefs": [], - "rest_props": { "type": "Element", "name": "div" } + "rest_props": { "type": "Element", "name": "select" } }, { "moduleName": "SelectItem", diff --git a/src/ComboBox/ComboBox.svelte b/src/ComboBox/ComboBox.svelte index 16008edc4f..0aee1350bb 100644 --- a/src/ComboBox/ComboBox.svelte +++ b/src/ComboBox/ComboBox.svelte @@ -224,9 +224,9 @@ class:bx--label="{true}" class:bx--label--disabled="{disabled}" > - - {titleText} - + + {titleText} + {/if} - - {titleText} - + + {titleText} + {/if} -
+
...`) * @type {string} */ @@ -26,6 +27,7 @@ /** * Specify the platform name. + * * Alternatively, use the named slot "platform" (e.g., `...`) */ export let platformName = ""; diff --git a/types/Select/Select.svelte.d.ts b/types/Select/Select.svelte.d.ts index e72c9437ef..35a581864a 100644 --- a/types/Select/Select.svelte.d.ts +++ b/types/Select/Select.svelte.d.ts @@ -1,7 +1,7 @@ import type { SvelteComponentTyped } from "svelte"; import type { SvelteHTMLElements } from "svelte/elements"; -type RestProps = SvelteHTMLElements["div"]; +type RestProps = SvelteHTMLElements["select"]; export interface SelectProps extends RestProps { /** diff --git a/types/UIShell/Header.svelte.d.ts b/types/UIShell/Header.svelte.d.ts index a4a71ae17a..6c1240b24d 100644 --- a/types/UIShell/Header.svelte.d.ts +++ b/types/UIShell/Header.svelte.d.ts @@ -30,6 +30,7 @@ export interface HeaderProps extends RestProps { /** * Specify the company name. + * * Alternatively, use the named slot "company" (e.g., `...`) * @default undefined */ @@ -37,6 +38,7 @@ export interface HeaderProps extends RestProps { /** * Specify the platform name. + * * Alternatively, use the named slot "platform" (e.g., `...`) * @default "" */