File tree Expand file tree Collapse file tree 2 files changed +5
-14
lines changed
src/lib/components/billing Expand file tree Collapse file tree 2 files changed +5
-14
lines changed Original file line number Diff line number Diff line change 102
102
onSubmit ={handleSubmit }>
103
103
<slot />
104
104
{#if showState }
105
- <div class =" state-element" >
106
- <!-- input select for state picker -->
107
- <StatePicker card ={paymentMethod } bind:state />
108
- </div >
105
+ <!-- input select for state picker -->
106
+ <StatePicker card ={paymentMethod } bind:state />
109
107
{:else }
110
108
<InputText
111
109
id =" name"
Original file line number Diff line number Diff line change 9
9
export let card: PaymentMethod | null = null ;
10
10
</script >
11
11
12
- <div class = " state-picker-container " >
12
+ <Layout . Stack direction = " column " gap = " s " >
13
13
{#if card }
14
14
<Card .Base variant =" secondary" padding =" s" >
15
15
<Layout .Stack direction =" row" alignItems =" center" gap =" s" >
32
32
33
33
<InputSelect
34
34
bind:value ={state }
35
+ required
35
36
label =" State"
36
37
placeholder =" Select a state"
37
38
id =" state-picker"
40
41
value: state .abbreviation ,
41
42
id: state .abbreviation .toLowerCase ()
42
43
}))} />
43
- </div >
44
-
45
- <style >
46
- .state-picker-container {
47
- display : flex ;
48
- flex-direction : column ;
49
- gap : 1rem ;
50
- }
51
- </style >
44
+ </Layout .Stack >
You can’t perform that action at this time.
0 commit comments