chore: v11 Dropdown

For better compatibility with existing codebases size xl is still supported.
This commit is contained in:
Gregor Wassmann 2023-03-27 16:40:13 +02:00 committed by Enrico Sacchetti
commit 6be8d3f7d9
No known key found for this signature in database
GPG key ID: 3374B89ECA60D796
6 changed files with 12 additions and 12 deletions

View file

@ -39,7 +39,7 @@
/**
* Specify the size of the dropdown field
* @type {"sm" | "lg" | "xl"}
* @type {"sm" | "lg" }
*/
export let size = undefined;
@ -197,13 +197,13 @@
size="{size}"
name="{name}"
aria-label="{$$props['aria-label']}"
class="bx--dropdown
{direction === 'top' && 'bx--list-box--up'}
{invalid && 'bx--dropdown--invalid'}
{!invalid && warn && 'bx--dropdown--warning'}
class="bx--dropdown
{direction === 'top' && 'bx--list-box--up'}
{invalid && 'bx--dropdown--invalid'}
{!invalid && warn && 'bx--dropdown--warning'}
{open && 'bx--dropdown--open'}
{size === 'sm' && 'bx--dropdown--sm'}
{size === 'xl' && 'bx--dropdown--xl'}
{(size === 'lg' || size === 'xl') && 'bx--dropdown--lg'}
{inline && 'bx--dropdown--inline'}
{disabled && 'bx--dropdown--disabled'}
{light && 'bx--dropdown--light'}"