Skip to content

Commit 6d1db56

Browse files
committed
chore: v11 Accordion
Size `xl` changed to `lg`. For better compatibility with existing codebases size `xl` is still supported.
1 parent 7366dc8 commit 6d1db56

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

COMPONENT_INDEX.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@
177177
| Prop name | Required | Kind | Reactive | Type | Default value | Description |
178178
| :-------- | :------- | :--------------- | :------- | --------------------------------- | ---------------------- | ------------------------------------------------ |
179179
| align | No | <code>let</code> | No | <code>"start" &#124; "end"</code> | <code>"end"</code> | Specify alignment of accordion item chevron icon |
180-
| size | No | <code>let</code> | No | <code>"sm" &#124; "xl"</code> | <code>undefined</code> | Specify the size of the accordion |
180+
| size | No | <code>let</code> | No | <code>"sm" &#124; "lg"</code> | <code>undefined</code> | Specify the size of the accordion |
181181
| disabled | No | <code>let</code> | No | <code>boolean</code> | <code>false</code> | Set to `true` to disable the accordion |
182182
| skeleton | No | <code>let</code> | No | <code>boolean</code> | <code>false</code> | Set to `true` to display the skeleton state |
183183

docs/src/COMPONENT_API.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"name": "size",
2222
"kind": "let",
2323
"description": "Specify the size of the accordion",
24-
"type": "\"sm\" | \"xl\"",
24+
"type": "\"sm\" | \"lg\"",
2525
"isFunction": false,
2626
"isFunctionDeclaration": false,
2727
"isRequired": false,

docs/src/pages/components/Accordion.svx

+2-2
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,9 @@ This example demonstrates how a list of items can be programmatically expanded a
8888

8989
<FileSource src="/framed/Accordion/ExpandableAccordion" />
9090

91-
## Extra-large size
91+
## Large size
9292

93-
<Accordion size="xl">
93+
<Accordion size="lg">
9494
<AccordionItem title="Natural Language Classifier">
9595
<p>Natural Language Classifier uses advanced natural language processing and machine learning techniques to create custom classification models. Users train their data and the service predicts the appropriate category for the inputted text.
9696
</p>

src/Accordion/Accordion.svelte

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
1010
/**
1111
* Specify the size of the accordion
12-
* @type {"sm" | "xl"}
12+
* @type {"sm" | "lg"}
1313
*/
1414
export let size = undefined;
1515
@@ -47,7 +47,7 @@
4747
class:bx--accordion--start="{align === 'start'}"
4848
class:bx--accordion--end="{align === 'end'}"
4949
class:bx--accordion--sm="{size === 'sm'}"
50-
class:bx--accordion--xl="{size === 'xl'}"
50+
class:bx--accordion--lg="{size === 'lg' || size === 'xl'}"
5151
{...$$restProps}
5252
on:click
5353
on:mouseover

tests/Accordion.test.svelte

+2-2
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@
110110
</AccordionItem>
111111
</Accordion>
112112

113-
<Accordion size="xl">
113+
<Accordion size="lg">
114114
<AccordionItem title="Natural Language Classifier">
115115
<p>
116116
Natural Language Classifier uses advanced natural language processing and
@@ -214,6 +214,6 @@
214214

215215
<Accordion skeleton open="{false}" />
216216

217-
<Accordion skeleton size="xl" />
217+
<Accordion skeleton size="lg" />
218218

219219
<Accordion skeleton size="sm" />

types/Accordion/Accordion.svelte.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export interface AccordionProps extends AccordionSkeletonProps {
1313
* Specify the size of the accordion
1414
* @default undefined
1515
*/
16-
size?: "sm" | "xl";
16+
size?: "sm" | "lg";
1717

1818
/**
1919
* Set to `true` to disable the accordion

0 commit comments

Comments
 (0)