mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-17 11:11:25 +00:00
chore: v11 DatePicker
For better compatibility with existing codebases size xl is still supported.
This commit is contained in:
parent
e1bd0aaa99
commit
6203e1d699
6 changed files with 8 additions and 8 deletions
|
@ -1,7 +1,7 @@
|
|||
<script>
|
||||
/**
|
||||
* Set the size of the input
|
||||
* @type {"sm" | "xl"}
|
||||
* @type {"sm" | "lg"}
|
||||
*/
|
||||
export let size = undefined;
|
||||
|
||||
|
@ -117,7 +117,7 @@
|
|||
class:bx--date-picker__input="{true}"
|
||||
class:bx--date-picker__input--invalid="{invalid}"
|
||||
class:bx--date-picker__input--sm="{size === 'sm'}"
|
||||
class:bx--date-picker__input--xl="{size === 'xl'}"
|
||||
class:bx--date-picker__input--lg="{size === 'lg' || size === 'xl'}"
|
||||
on:input
|
||||
on:input="{({ target }) => {
|
||||
updateValue({ type: 'input', value: target.value });
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue