Skip to content

Commit 8c514b7

Browse files
committed
addressed a comment
1 parent 26f7431 commit 8c514b7

2 files changed

Lines changed: 14 additions & 20 deletions

File tree

src/routes/(public)/(guest)/login/+page.svelte

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -95,15 +95,12 @@
9595
<Form onSubmit={login}>
9696
<Layout.Stack>
9797
{#if isCloud}
98-
<Button
99-
class="auth-provider-button"
100-
secondary
101-
fullWidth
102-
on:click={onGithubLogin}
103-
{disabled}>
104-
<span class="icon-github" aria-hidden="true"></span>
105-
<span class="text">Sign in with GitHub</span>
106-
</Button>
98+
<div class="auth-provider-wrapper">
99+
<Button secondary fullWidth on:click={onGithubLogin} {disabled}>
100+
<span class="icon-github" aria-hidden="true"></span>
101+
<span class="text">Sign in with GitHub</span>
102+
</Button>
103+
</div>
107104
<span class="with-separators eyebrow-heading-3">or</span>
108105
{/if}
109106
<InputEmail
@@ -136,7 +133,7 @@
136133
</Unauthenticated>
137134

138135
<style>
139-
:global(.auth-provider-button) {
136+
.auth-provider-wrapper {
140137
margin-bottom: var(--gap-s, 8px);
141138
}
142139
</style>

src/routes/(public)/(guest)/register/+page.svelte

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -133,15 +133,12 @@
133133
<Form onSubmit={register}>
134134
<Layout.Stack>
135135
{#if isCloud}
136-
<Button
137-
class="auth-provider-button"
138-
secondary
139-
fullWidth
140-
on:click={onGithubLogin}
141-
{disabled}>
142-
<span class="icon-github" aria-hidden="true"></span>
143-
<span class="text">Sign up with GitHub</span>
144-
</Button>
136+
<div class="auth-provider-wrapper">
137+
<Button secondary fullWidth on:click={onGithubLogin} {disabled}>
138+
<span class="icon-github" aria-hidden="true"></span>
139+
<span class="text">Sign up with GitHub</span>
140+
</Button>
141+
</div>
145142
<span class="with-separators eyebrow-heading-3">or</span>
146143
{/if}
147144

@@ -192,7 +189,7 @@
192189
</Unauthenticated>
193190

194191
<style>
195-
:global(.auth-provider-button) {
192+
.auth-provider-wrapper {
196193
margin-bottom: var(--gap-s, 8px);
197194
}
198195
</style>

0 commit comments

Comments
 (0)