diff --git a/COMPONENT_INDEX.md b/COMPONENT_INDEX.md index ad9ee831..b24deab3 100644 --- a/COMPONENT_INDEX.md +++ b/COMPONENT_INDEX.md @@ -1662,13 +1662,12 @@ None. ### Props -| Prop name | Kind | Reactive | Type | Default value | Description | -| :-------------- | :--------------- | :------- | :----------------------------------------- | ------------------------------ | --------------------------------------------- | -| ref | let | Yes | null | HTMLAnchorElement | null | Obtain a reference to the HTML anchor element | -| expanded | let | Yes | boolean | false | Set to `true` to toggle the expanded state | -| href | let | No | string | "/" | Specify the `href` attribute | -| text | let | No | string | -- | Specify the text | -| iconDescription | let | No | string | "Expand/Collapse" | Specify the ARIA label for the chevron icon | +| Prop name | Kind | Reactive | Type | Default value | Description | +| :-------- | :--------------- | :------- | :----------------------------------------- | ------------------ | --------------------------------------------- | +| ref | let | Yes | null | HTMLAnchorElement | null | Obtain a reference to the HTML anchor element | +| expanded | let | Yes | boolean | false | Set to `true` to toggle the expanded state | +| href | let | No | string | "/" | Specify the `href` attribute | +| text | let | No | string | -- | Specify the text | ### Slots diff --git a/docs/src/COMPONENT_API.json b/docs/src/COMPONENT_API.json index 515ac1e7..0a89fd78 100644 --- a/docs/src/COMPONENT_API.json +++ b/docs/src/COMPONENT_API.json @@ -4057,16 +4057,6 @@ "isFunction": false, "constant": false, "reactive": true - }, - { - "name": "iconDescription", - "kind": "let", - "description": "Specify the ARIA label for the chevron icon", - "type": "string", - "value": "\"Expand/Collapse\"", - "isFunction": false, - "constant": false, - "reactive": false } ], "slots": [{ "name": "__default__", "default": true, "slot_props": "{}" }], diff --git a/src/UIShell/GlobalHeader/HeaderNavMenu.svelte b/src/UIShell/GlobalHeader/HeaderNavMenu.svelte index 66e25483..5c351aaa 100644 --- a/src/UIShell/GlobalHeader/HeaderNavMenu.svelte +++ b/src/UIShell/GlobalHeader/HeaderNavMenu.svelte @@ -14,9 +14,6 @@ /** Obtain a reference to the HTML anchor element */ export let ref = null; - /** Specify the ARIA label for the chevron icon */ - export let iconDescription = "Expand/Collapse"; - import ChevronDown16 from "carbon-icons-svelte/lib/ChevronDown16"; @@ -32,7 +29,7 @@ }}" /> -
  • +
  • {text} - +