Skip to content

Commit

Permalink
Merge pull request #68 from ZackDeRose/zack-appearance-class-name-fix
Browse files Browse the repository at this point in the history
fixes class names not propagating to email auth components
  • Loading branch information
Andrew Smith authored Nov 8, 2022
2 parents 33a23eb + b5ccc65 commit 2232e5f
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/cyan-camels-report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@supabase/auth-ui-react': patch
---

fix class names not propagating to email auth components
21 changes: 21 additions & 0 deletions packages/react/src/components/Auth/Auth.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,27 @@ export const magicLink = (args: any) => (
</Container>
)

export const withCustomClassNames = (args: any) => (
<Container {...args}>
<Auth
{...args}
dark={useDarkMode() ? true : false}
appearance={{
className: {
input: 'foo',
anchor: 'foo',
button: 'foo',
container: 'foo',
divider: 'foo',
label: 'foo',
loader: 'foo',
message: 'foo',
},
}}
/>
</Container>
)

export const ChangeViewState = (args: any) => {
const [view, setView] = useState<
'sign_in' | 'sign_up' | 'forgotten_password' | 'magic_link'
Expand Down
1 change: 1 addition & 0 deletions packages/react/src/components/Auth/Auth.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ function Auth({
magicLink,
showLinks,
i18n,
appearance,
}

/**
Expand Down

0 comments on commit 2232e5f

Please sign in to comment.