mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 11:36:36 +00:00
fix(ui-shell): default isSelected in HeaderNavItem to false
This commit is contained in:
parent
07db7d9fbb
commit
f3d4fe73cf
4 changed files with 11 additions and 8 deletions
|
@ -1663,12 +1663,12 @@ None.
|
|||
|
||||
### Props
|
||||
|
||||
| Prop name | Kind | Reactive | Type | Default value | Description |
|
||||
| :--------- | :--------------- | :------- | :----------------------------------------- | ----------------- | --------------------------------------------- |
|
||||
| ref | <code>let</code> | Yes | <code>null | HTMLAnchorElement</code> | <code>null</code> | Obtain a reference to the HTML anchor element |
|
||||
| href | <code>let</code> | No | <code>string</code> | -- | Specify the `href` attribute |
|
||||
| text | <code>let</code> | No | <code>string</code> | -- | Specify the text |
|
||||
| isSelected | <code>let</code> | No | -- | -- | Set to `true` to select the item |
|
||||
| Prop name | Kind | Reactive | Type | Default value | Description |
|
||||
| :--------- | :--------------- | :------- | :----------------------------------------- | ------------------ | --------------------------------------------- |
|
||||
| ref | <code>let</code> | Yes | <code>null | HTMLAnchorElement</code> | <code>null</code> | Obtain a reference to the HTML anchor element |
|
||||
| href | <code>let</code> | No | <code>string</code> | -- | Specify the `href` attribute |
|
||||
| text | <code>let</code> | No | <code>string</code> | -- | Specify the text |
|
||||
| isSelected | <code>let</code> | No | <code>boolean</code> | <code>false</code> | Set to `true` to select the item |
|
||||
|
||||
### Slots
|
||||
|
||||
|
|
|
@ -4112,6 +4112,8 @@
|
|||
"name": "isSelected",
|
||||
"kind": "let",
|
||||
"description": "Set to `true` to select the item",
|
||||
"type": "boolean",
|
||||
"value": "false",
|
||||
"isFunction": false,
|
||||
"constant": false,
|
||||
"reactive": false
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
export let text = undefined;
|
||||
|
||||
/** Set to `true` to select the item */
|
||||
export let isSelected = undefined;
|
||||
export let isSelected = false;
|
||||
|
||||
/** Obtain a reference to the HTML anchor element */
|
||||
export let ref = null;
|
||||
|
|
|
@ -15,8 +15,9 @@ export interface HeaderNavItemProps
|
|||
|
||||
/**
|
||||
* Set to `true` to select the item
|
||||
* @default false
|
||||
*/
|
||||
isSelected?: undefined;
|
||||
isSelected?: boolean;
|
||||
|
||||
/**
|
||||
* Obtain a reference to the HTML anchor element
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue