File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -135,10 +135,9 @@ Modal.Footer = ({
135
135
} ) => (
136
136
< footer className = "flex items-center justify-between border-t px-3 py-3 border-secondary" >
137
137
< div className = "mr-4" > { children } </ div >
138
- < div className = "space-x-2" >
139
- < Button variant = "secondary" size = "sm" onClick = { onDismiss } >
140
- { cancelText || 'Cancel' }
141
- </ Button >
138
+ < div className = "flex flex-row-reverse gap-2" >
139
+ { /* Note the confirm button is first so it autofocuses when the modal opens,
140
+ but it displays in the right order because of flex-row-reverse */ }
142
141
< Button
143
142
size = "sm"
144
143
variant = { actionType }
@@ -148,6 +147,9 @@ Modal.Footer = ({
148
147
>
149
148
{ actionText }
150
149
</ Button >
150
+ < Button variant = "secondary" size = "sm" onClick = { onDismiss } >
151
+ { cancelText || 'Cancel' }
152
+ </ Button >
151
153
</ div >
152
154
</ footer >
153
155
)
You can’t perform that action at this time.
0 commit comments