Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possibility to override "thirdPartyEmailPasswordDivider" style #785

Open
nik2208 opened this issue Jan 15, 2024 · 2 comments
Open

Possibility to override "thirdPartyEmailPasswordDivider" style #785

nik2208 opened this issue Jan 15, 2024 · 2 comments

Comments

@nik2208
Copy link

nik2208 commented Jan 15, 2024

in italian the translation for the english work "or" is "oppure", which is quite long and breaks the flex boundaries of the divider row.
I've searched inside the library but the divider doesn't seem to be customisable.
Screenshot 2024-01-15 at 09 09 27
is it possible to add it to the set of customisable components?

@rishabhpoddar
Copy link
Contributor

I think the component you want to override is ThirdPartyEmailPasswordHeader_Override, and then you can add your own react component there instead of ours.

@nik2208
Copy link
Author

nik2208 commented Jan 15, 2024

shouldnt I be able to override its style with something like this?

style: `
                [data-supertokens~=container] {
                    --palette-background: 51, 51, 51;
                    --palette-inputBackground: 41, 41, 41;
                    --palette-inputBorder: 41, 41, 41;
                    --palette-textTitle: 255, 255, 255;
                    --palette-textLabel: 255, 255, 255;
                    --palette-textPrimary: 255, 255, 255;
                    --palette-error: 173, 46, 46;
                    --palette-textInput: 169, 169, 169;
                    --palette-textLink: 169, 169, 169;
                    --palette-primary: ${environment.SUPERTOKENS.STYLE.PALETTE_PRIMARY};
                    --palette-primaryBorder: ${environment.SUPERTOKENS.STYLE.PALETTE_PRIMARY_BORDER};
                },
                [data-supertokens~=thirdPartyEmailPasswordDividerOr] {
                    margin-top: 0.55em;
                },
                [data-supertokens~=divider] {
                    flex: 2 3;
                },
            `,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants