mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-19 11:59:34 +00:00
chore: v11 TreeView
Size `compact` changed to `xs`. For better compatibility with existing codebases size `compact` is still supported.
This commit is contained in:
parent
68aa238621
commit
2df821512f
7 changed files with 13 additions and 15 deletions
|
@ -34,9 +34,9 @@
|
|||
|
||||
/**
|
||||
* Specify the TreeView size
|
||||
* @type {"default" | "compact"}
|
||||
* @type {"xs"}
|
||||
*/
|
||||
export let size = "default";
|
||||
export let size;
|
||||
|
||||
/** Specify the label text */
|
||||
export let labelText = "";
|
||||
|
@ -194,8 +194,7 @@
|
|||
role="tree"
|
||||
bind:this="{ref}"
|
||||
class:bx--tree="{true}"
|
||||
class:bx--tree--default="{size === 'default'}"
|
||||
class:bx--tree--compact="{size === 'compact'}"
|
||||
class:bx--tree--xs="{size === 'xs' || size === 'compact'}"
|
||||
aria-label="{hideLabel ? labelText : undefined}"
|
||||
aria-labelledby="{!hideLabel ? labelId : undefined}"
|
||||
aria-multiselectable="{selectedIds.length > 1 || undefined}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue