chore: v11 Select

Size `xl` changed to `lg`. For better compatibility with existing codebases size `xl` is still supported.
This commit is contained in:
Gregor Wassmann 2023-03-28 22:27:06 +02:00
commit d20a5a7f38
6 changed files with 9 additions and 9 deletions

View file

@ -11,7 +11,7 @@
/**
* Set the size of the select input
* @type {"sm" | "xl"}
* @type {"sm" | "lg"}
*/
export let size = undefined;
@ -161,7 +161,7 @@
name="{name}"
class:bx--select-input="{true}"
class:bx--select-input--sm="{size === 'sm'}"
class:bx--select-input--xl="{size === 'xl'}"
class:bx--select-input--lg="{size === 'lg' || size === 'xl'}"
on:change="{handleChange}"
on:change
on:input
@ -205,7 +205,7 @@
aria-invalid="{invalid || undefined}"
class:bx--select-input="{true}"
class:bx--select-input--sm="{size === 'sm'}"
class:bx--select-input--xl="{size === 'xl'}"
class:bx--select-input--lg="{size === 'lg' || size === 'xl'}"
on:change="{handleChange}"
on:change
on:input