@@ -127,10 +127,22 @@ const Login = () => {
127
127
128
128
const renderSSOLoginPage = ( ) => (
129
129
< div className = "flexbox-col dc__gap-12 p-36" >
130
+ { initLoading && ! loginList . length && (
131
+ < Button
132
+ variant = { ButtonVariantType . secondary }
133
+ text = "Checking SSO"
134
+ dataTestId = "checking-sso"
135
+ style = { ButtonStyleType . neutral }
136
+ startIcon = { < Icon name = "ic-circle-loader" color = { null } /> }
137
+ fullWidth
138
+ size = { ComponentSizeType . xl }
139
+ disabled
140
+ />
141
+ ) }
130
142
{ loginList
131
143
. filter ( ( sso ) => sso . active )
132
144
. map ( ( item ) => (
133
- < div className = "login-button" key = { item . name } >
145
+ < div key = { item . name } >
134
146
< Button
135
147
variant = { ButtonVariantType . secondary }
136
148
text = { `Login with ${ item . name } ` }
@@ -181,22 +193,23 @@ const Login = () => {
181
193
)
182
194
183
195
return (
184
- < div className = "full-height-width login dc__grid-half bg__secondary" >
196
+ < div className = "full-height-width dc__grid-half bg__secondary" >
185
197
< div className = "flexbox p-12" >
186
198
< LoginBanner />
187
199
</ div >
188
200
< div className = "flex" >
189
- < div className = "login-card__wrapper dc__overflow-hidden br-12 mw-420 bg__primary dc__border" >
201
+ < div className = "shadow__overlay dc__overflow-hidden br-12 mw-420 bg__primary dc__border" >
190
202
< div className = "flexbox-col" >
191
203
{ renderDevtronLogo ( ) }
192
- < AnimatePresence initial = { false } >
204
+ < AnimatePresence >
193
205
< MotionDiv
194
206
key = { location . pathname }
195
207
variants = { LOGIN_CARD_ANIMATION_VARIANTS }
196
208
initial = "initial"
197
209
animate = "animate"
198
210
exit = "exit"
199
211
transition = { { duration : 0.3 , ease : [ 0.4 , 0 , 0.2 , 1 ] } }
212
+ className = "dc__overflow-hidden"
200
213
>
201
214
{ renderLoginContent ( ) }
202
215
</ MotionDiv >
0 commit comments