Repository navigation
Conversation
Closes keycloak#55114 Signed-off-by: kathari00 <katharina.eiserfey1@gmail.com> Signed-off-by: Martin Bartoš <mabartos@redhat.com>
There was a problem hiding this comment.
🔵 Needs a closer look
The snapshot lacks the bundled PatternFly 6 CSS, so browser validation with the built theme is needed to confirm OTP hit targets and selected states, clipboard expansion styling, and responsive recovery-code buttons.
No open issues 🎉
What changed in this PR
Aligns Keycloak v3 login pages with PatternFly 6 to address the background, OTP selector, and button styling issues reported in #55114.
Changes:
- Replaces OTP tiles with shared radio-button cards and adds a localized “Default” label for unnamed credentials.
- Adjusts backgrounds, buttons, alerts, clipboard controls, and supporting layouts.
- Updates UI page selectors and OTP tests, including coverage that user-provided credential labels remain unchanged.
| File | Description |
|---|---|
themes/src/main/resources/theme/keycloak.v3/login/theme.properties |
Updates PatternFly classes and adds OTP card styling mappings. |
themes/src/main/resources/theme/keycloak.v3/login/resources/css/styles.css |
Adjusts background sizing and social-button text wrapping. |
themes/src/main/resources/theme/base/login/otp-credential.ftl |
Adds shared OTP selection cards with native radio inputs. |
themes/src/main/resources/theme/base/login/messages/messages_en.properties |
Adds OTP headings and the default credential label. |
themes/src/main/resources/theme/base/login/login-reset-otp.ftl |
Uses shared OTP cards and standard action grouping. |
themes/src/main/resources/theme/base/login/login-recovery-authn-code-config.ftl |
Uses default button widths for recovery-code actions. |
themes/src/main/resources/theme/base/login/login-otp.ftl |
Adopts OTP cards and removes custom selection JavaScript. |
themes/src/main/resources/theme/base/login/login-oid4vp.ftl |
Adjusts expired-code messaging layout and link wrapping. |
themes/src/main/resources/theme/base/login/frontchannel-logout.ftl |
Applies form, list, and full-width button styling. |
themes/src/main/resources/theme/base/login/field.ftl |
Repositions password errors and revises clipboard markup. |
themes/src/main/resources/theme/base/login/delete-account-confirm.ftl |
Uses form-specific alert styling with a fallback. |
testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/forms/LevelOfAssuranceFlowTest.java |
Updates the expected unnamed OTP label. |
testsuite/integration-arquillian/tests/base/src/test/java/org/keycloak/testsuite/forms/BrowserFlowTest.java |
Updates label expectations and tests literal user-label rendering. |
testsuite/integration-arquillian/tests/base/src/main/java/org/keycloak/testsuite/pages/ResetOtpPage.java |
Selects OTP credentials through radio labels. |
testsuite/integration-arquillian/tests/base/src/main/java/org/keycloak/testsuite/pages/LoginTotpPage.java |
Updates selectors for radio-based OTP cards. |
test-framework/ui/src/main/java/org/keycloak/testframework/ui/page/LoginTotpPage.java |
Updates framework selectors for the new OTP markup. |
services/src/main/java/org/keycloak/forms/login/freemarker/model/TotpLoginBean.java |
Preserves raw credential labels for template-level fallback handling. |
services/src/main/java/org/keycloak/authentication/authenticators/browser/OTPFormAuthenticator.java |
Removes the hard-coded unnamed credential label constant. |
Review effort: Balanced
…atting Signed-off-by: Martin Bartoš <mabartos@redhat.com>
There was a problem hiding this comment.
🔵 Needs a closer look
The selectable-card and clipboard markup depends on PatternFly 6 CSS missing from this checkout, leaving keyboard selection, focus indicators, and responsive layouts pending browser validation.
No open issues 🎉
Review effort: Balanced
PatternFly 6 buttons keep their label on one line, so in narrow layouts (320px wide, or 1280px at 400% zoom) longer labels get clipped, e.g. "Send verification email" on login-verify-email, and some locales overflow horizontally on recovery codes config and IdP link confirm pages (WCAG 1.4.10 Reflow). Allow the labels of form action buttons to wrap, with hyphenation for long words. Signed-off-by: kathari00 <katharina.eiserfey1@gmail.com>
There was a problem hiding this comment.
🔵 Needs a closer look
The OTP cards and clipboard markup require browser validation against the bundled PatternFly 6 CSS, absent from this snapshot, to confirm selection hit areas, expanded states, and responsive rendering.
No open issues 🎉
Review effort: Balanced
Signed-off-by: Martin Bartoš <mabartos@redhat.com>
There was a problem hiding this comment.
🔵 Needs a closer look
The shared login template changes need browser validation for OTP selection, keyboard interaction, and narrow or localized layouts, but the required PF6 assets are unavailable in this checkout.
No open issues 🎉
Review effort: Balanced
Unreported flaky test detectedIf the flaky tests below are affected by the changes, please review and update the changes accordingly. Otherwise, a maintainer should report the flaky tests prior to merging the PR. org.keycloak.testsuite.adapter.servlet.SAMLServletAdapterTest#salesPostSigEmailTestorg.keycloak.testsuite.adapter.servlet.SAMLServletAdapterTest#testReloginWithInvalidAuthSessionCookieorg.keycloak.testsuite.adapter.servlet.SAMLServletAdapterTest#testUserAttributeStatementMapperUserGroupsNoAggregateorg.keycloak.testsuite.adapter.servlet.SAMLServletAdapterTest#idpInitiatedLoginTest |
|
@edewit @kathari00 @vaceksimon Could you please review? Thanks! |
For instance, new OTP form (instead of "unnamed", there's the localized "Default"):

@edewit @kathari00 @vaceksimon Please review