8000 fix(login): restore spaces between text and inline elements by BrDewit · Pull Request #1080 · keycloakify/keycloakify · GitHub
[go: up one dir, main page]

Skip to content

fix(login): restore spaces between text and inline elements - #1080

Open
BrDewit wants to merge 1 commit into
keycloakify:mainfrom
BrDewit:fix/login-missing-spaces
Open

BrDewit wants to merge 1 commit into
keycloakify:mainfrom
BrDewit:fix/login-missing-spaces

Conversation

@BrDewit
@BrDewit BrDewit commented Nov 25, 2026 •
Copy link
Copy Markdown

On a few pages I noticed that a space that was in the original keycloak template was not in the keycloakify template. The cause is that JSX drops the whitespace between elements that sit on separate lines, so a few pages lost a space due to this issue.

I've found 5 places where this occurs:

  • LoginUsername.tsx: The space between "New user?" and the register link.
  • Template.tsx: The space between "Required fileds" and the "*".
  • WebauthnAuthenticate.tsx and LoginPasskeysConditionalAuthenticate.tsx: the "Created" label and the date.

The missing space on the login-page-expired page is not included, because #928 already fixes it. That PR has been open for a long time though, so I can add the fix to this branch if you prefer.

Summary by CodeRabbit

  • Bug Fixes
    • Improved spacing in login screens between the required-fields indicator and its message, authenticator labels and creation times, and the registration prompt and link. This makes these elements easier to read and visually distinguish.

JSX drops the whitespace between elements placed on separate lines, so a few
pages lost a space that Keycloak's templates have:
- login-username.ftl: "New user?" and the register link (login.ftl has it)
- template.ftl: the required fields star and its label
- webauthn-authenticate.ftl and login-passkeys-conditional-authenticate.ftl:
  the "Created" label and the date
@coderabbitai
coderabbitai Bot commented Nov 25, 2026 •
Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

Four login UI locations now render spaces between adjacent text elements: the required-fields indicator and message, the registration prompt and link, and two creation-time labels and timestamps.

Changes: Login text spacing

Layer / File(s) Summary
Separate adjacent login text
src/login/Template.tsx, src/login/pages/LoginUsername.tsx, src/login/pages/LoginPasskeysConditionalAuthenticate.tsx, src/login/pages/WebauthnAuthenticate.tsx
Spaces are added between the required-fields indicator and message, the registration prompt and link, and creation-time labels and timestamps.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Change: Bug fix

Suggested reviewers: garronej

Merge Risk: Minimal · up to c65d8

This change restores missing spaces between adjacent text elements on the login pages. It has no identified functional risk and is ready to merge.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title "fix(login): restore spaces between text and inline elements" matches the changeset. All four files add a missing space between text and an inline element: the required-fields asterisk in Te…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "fix(login): restore spaces between text and inline elements" matches the changeset. All four files add a missing space between text a 8000 nd an inline element: the required-fields asterisk in Template.tsx, the registration link in LoginUsername.tsx, and the created-at label in WebauthnAuthenticate.tsx and LoginPasskeysConditionalAuthenticate.tsx. The title names the primary change and the login scope, and it uses a conventional commit prefix.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 16b8fe44-dce2-463b-a999-1c9db7fb73e5
Commits

Reviewing files that changed from the base of the PR and between 5db584c and c65d8a2.

Files selected for processing: 4

  • src/login/Template.tsx
  • src/login/pages/LoginPasskeysConditionalAuthenticate.tsx
  • src/login/pages/LoginUsername.tsx
  • src/login/pages/WebauthnAuthenticate.tsx

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review.

This branch has not been deployed

No deployments
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.

1 participant

0