chore: v11 ContentSwitcher

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

View file

@ -8,7 +8,7 @@
/**
* Specify the size of the content switcher
* @type {"sm" | "xl"}
* @type {"sm" | "lg" }
*/
export let size = undefined;
@ -63,7 +63,7 @@
role="tablist"
class:bx--content-switcher="{true}"
class:bx--content-switcher--sm="{size === 'sm'}"
class:bx--content-switcher--xl="{size === 'xl'}"
class:bx--content-switcher--lg="{size === 'lg' || size === 'xl'}"
{...$$restProps}
on:click
on:mouseover