File tree Expand file tree Collapse file tree 2 files changed +11
-8
lines changed Expand file tree Collapse file tree 2 files changed +11
-8
lines changed Original file line number Diff line number Diff line change 110
110
</span >
111
111
{/if }
112
112
<span class =" svel-switch__core" >
113
- <div class =" svel-switch__inner" >
114
- {#if inactiveText || activeIcon }
115
- <SvelIcon />
116
- {/if }
117
- </div >
113
+ {#if inlinePrompt }
114
+ <div class =" svel-switch__inner" >
115
+ {#if activeIcon || inactiveIcon }
116
+ <SvelIcon />
117
+ {:else if activeText || inactiveText }
118
+ <span class ="is-text" aria-hidden ="!checked" >{checked ? activeText : inactiveText }</span >
119
+ {/if }
120
+ </div >
121
+ {/if }
118
122
<div class =" svel-switch__action" >
119
123
{#if loading }
120
124
<SvelIcon >
Original file line number Diff line number Diff line change 15
15
<SvelSwitch size =" large" />
16
16
<SvelSwitch size =" small" />
17
17
18
+ <SvelSwitch activeValue ="100" bind:value ={value2 } inactiveValue =" 0" />
18
19
<div />
19
20
<SvelSwitch activeText =" Pay by month" inactiveText =" Pay by year" />
21
+ <SvelSwitch activeText =" Y" inactiveText =" N" inlinePrompt />
20
22
21
23
<div />
22
-
23
- <SvelSwitch activeValue ="100" bind:value ={value2 } inactiveValue =" 0" />
24
- {value2 }
You can’t perform that action at this time.
0 commit comments