Skip to content

fix(web): center OR separator between standard and social login#667

Open
Harshalyadav wants to merge 1 commit intoGreenstand:mainfrom
Harshalyadav:fix/web-centered-or-divider
Open

fix(web): center OR separator between standard and social login#667
Harshalyadav wants to merge 1 commit intoGreenstand:mainfrom
Harshalyadav:fix/web-centered-or-divider

Conversation

@Harshalyadav
Copy link
Copy Markdown

Description

This PR fixes a UI alignment issue on both the Login and Signup pages where
the “OR” separator between standard authentication and social authentication
options was not centered, making the layout look visually unbalanced.

The update ensures the “OR” separator is properly centered with a clear visual
divider on both pages, improving visual clarity and user experience.

Fixes: #665


Changes Made

  • Changes in apps folder:

    • Web
      • Centered the “OR” separator on the Login page
      • Centered the “OR” separator on the Signup page
      • Improved spacing and alignment between authentication sections
  • Changes in packages folder:

    • Core

Type of Change

  • 🐛 Bug fix (non-breaking change which fixes a UI issue)
  • New feature
  • 💥 Breaking change
  • 📝 Documentation update

Screenshots

Before After
image image

How Has This Been Tested?

  • Manual UI verification on Login and Signup pages
  • Cypress integration
  • Cypress component tests
  • Jest unit tests

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code where necessary
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective
  • Existing tests pass locally with my changes
  • No dependent changes are required

Additional Comments

This is a visual-only fix applied consistently across both Login and Signup
pages. No authentication logic or existing functionality is affected.

@satnam72
Copy link
Copy Markdown
Collaborator

satnam72 commented Jan 15, 2026

This looks good to me. @dadiorchen Could you please review and merge when ready?

@pierrelstan pierrelstan self-requested a review January 15, 2026 00:34
"data-test"?: string;
};

const OrDivider = ({ text = "OR", sx, "data-test": dataTest }: OrDividerProps) => {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please update the text to match the style and format from the Figma design.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pierrelstan Could you please share the link to Figma design?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

}}
data-test={dataTest || "or-divider"}
>
<Box sx={{ flex: 1, height: 1, bgcolor: "divider" }} />
Copy link
Copy Markdown
Collaborator

@pierrelstan pierrelstan Jan 15, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are the horizontal lines needed? The Figma design only shows the "Or" text centered.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The horizontal lines aren’t required. As per the Figma design, only the “Or” text is shown centered without any divider lines.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pierrelstan
Hi! After updating the OR separator to match Figma (centered ‘or’, no lines), the component name OrDivider no longer reflects its behavior. Are you okay with renaming it?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes you can

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for confirming, @pierrelstan

@Harshalyadav Harshalyadav force-pushed the fix/web-centered-or-divider branch from c807ebe to a7ec428 Compare January 16, 2026 18:21
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

Successfully merging this pull request may close these issues.

Improve Login UI by Centering “OR” Divider

3 participants