From 0a279bd8a6e24cc87c17c4f57b2031ca717d3d67 Mon Sep 17 00:00:00 2001 From: Gregor Wassmann Date: Mon, 27 Mar 2023 16:49:15 +0200 Subject: [PATCH] chore: v11 ExpandableTile Note that state labels `tileCollapsedLabel` and `tileExpandedLabel` are no longer supported. --- COMPONENT_INDEX.md | 2 -- docs/src/COMPONENT_API.json | 24 ------------------------ src/Tile/ExpandableTile.svelte | 7 ------- tests/ExpandableTile.test.svelte | 6 +----- types/Tile/ExpandableTile.svelte.d.ts | 12 ------------ 5 files changed, 1 insertion(+), 50 deletions(-) diff --git a/COMPONENT_INDEX.md b/COMPONENT_INDEX.md index b2143d09..294dae60 100644 --- a/COMPONENT_INDEX.md +++ b/COMPONENT_INDEX.md @@ -1224,8 +1224,6 @@ None. | light | No | let | No | boolean | false | Set to `true` to enable the light variant | | tileCollapsedIconText | No | let | No | string | "Interact to expand Tile" | Specify the icon text of the collapsed tile | | tileExpandedIconText | No | let | No | string | "Interact to collapse Tile" | Specify the icon text of the expanded tile | -| tileExpandedLabel | No | let | No | string | "" | Specify the icon label of the expanded tile | -| tileCollapsedLabel | No | let | No | string | "" | Specify the icon label of the collapsed tile | | tabindex | No | let | No | string | "0" | Specify the tabindex | | id | No | let | No | string | "ccs-" + Math.random().toString(36) | Set an id for the top-level div element | diff --git a/docs/src/COMPONENT_API.json b/docs/src/COMPONENT_API.json index b0e5ab57..a6a63cd6 100644 --- a/docs/src/COMPONENT_API.json +++ b/docs/src/COMPONENT_API.json @@ -3642,30 +3642,6 @@ "constant": false, "reactive": false }, - { - "name": "tileExpandedLabel", - "kind": "let", - "description": "Specify the icon label of the expanded tile", - "type": "string", - "value": "\"\"", - "isFunction": false, - "isFunctionDeclaration": false, - "isRequired": false, - "constant": false, - "reactive": false - }, - { - "name": "tileCollapsedLabel", - "kind": "let", - "description": "Specify the icon label of the collapsed tile", - "type": "string", - "value": "\"\"", - "isFunction": false, - "isFunctionDeclaration": false, - "isRequired": false, - "constant": false, - "reactive": false - }, { "name": "tabindex", "kind": "let", diff --git a/src/Tile/ExpandableTile.svelte b/src/Tile/ExpandableTile.svelte index fe8ae386..5b59943a 100644 --- a/src/Tile/ExpandableTile.svelte +++ b/src/Tile/ExpandableTile.svelte @@ -17,12 +17,6 @@ /** Specify the icon text of the expanded tile */ export let tileExpandedIconText = "Interact to collapse Tile"; - /** Specify the icon label of the expanded tile */ - export let tileExpandedLabel = ""; - - /** Specify the icon label of the collapsed tile */ - export let tileCollapsedLabel = ""; - /** Specify the tabindex */ export let tabindex = "0"; @@ -92,7 +86,6 @@
- {expanded ? tileExpandedLabel : tileCollapsedLabel}
diff --git a/tests/ExpandableTile.test.svelte b/tests/ExpandableTile.test.svelte index 53c60474..a0353959 100644 --- a/tests/ExpandableTile.test.svelte +++ b/tests/ExpandableTile.test.svelte @@ -12,11 +12,7 @@
Below the fold content here
- +
Above the fold content here
Below the fold content here
diff --git a/types/Tile/ExpandableTile.svelte.d.ts b/types/Tile/ExpandableTile.svelte.d.ts index 01c6dd58..da481e8d 100644 --- a/types/Tile/ExpandableTile.svelte.d.ts +++ b/types/Tile/ExpandableTile.svelte.d.ts @@ -40,18 +40,6 @@ export interface ExpandableTileProps extends RestProps { */ tileExpandedIconText?: string; - /** - * Specify the icon label of the expanded tile - * @default "" - */ - tileExpandedLabel?: string; - - /** - * Specify the icon label of the collapsed tile - * @default "" - */ - tileCollapsedLabel?: string; - /** * Specify the tabindex * @default "0"