Repository navigation
Add overridable login header, aside, alert, and language macros - #55265
Merged
Merged
Conversation
Let custom themes customize brand content, a side marketing panel, alerts, and the locale selector without replacing template.ftl, matching the existing footer.ftl hook. Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
edewit
marked this pull request as ready for review
November 24, 2026 09:01
edewit
force-pushed
the
feat/login-theme-chrome-hooks
branch
from
November 24, 2026 09:02
0ab2235 to
3d0fc6b
Compare
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The aside is misplaced below 75rem, and whitespace compression removes meaningful formatting from custom help content.
1 open issue
What changed in this PR
This PR adds reusable login-theme hooks so custom themes can customize shared page elements without replacing template.ftl.
Changes:
- Extract header, alert, and locale-selector markup into overridable macros and add an empty aside hook.
- Add a wide-screen, two-column layout in
keycloak.v3when aside content is present. - Document the hooks in customization, upgrade, and release guides.
| File | Description |
|---|---|
themes/src/main/resources/theme/keycloak.v3/login/theme.properties |
Defines the aside CSS class. |
themes/src/main/resources/theme/keycloak.v3/login/resources/css/styles.css |
Adds aside positioning and a wide-screen layout. |
themes/src/main/resources/theme/base/login/template.ftl |
Calls the new macros and conditionally renders the aside. |
themes/src/main/resources/theme/base/login/language-selector.ftl |
Extracts the locale dropdown. |
themes/src/main/resources/theme/base/login/header.ftl |
Provides overridable brand content. |
themes/src/main/resources/theme/base/login/aside.ftl |
Provides an empty side-content hook. |
themes/src/main/resources/theme/base/login/alert.ftl |
Extracts feedback-alert markup. |
docs/guides/ui-customization/themes.adoc |
Explains the hooks and provides an aside example. |
docs/documentation/upgrading/topics/changes/changes-27_0_0.adoc |
Describes the new customization options. |
docs/documentation/release_notes/topics/27_0_0.adoc |
Announces the login-theme hooks. |
Review effort: Balanced
mabartos
previously approved these changes
Nov 25, 2026
Preserve aside whitespace, stack the aside on narrow layouts, style aside content with PatternFly content classes, and document the header brandName parameter. Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
mabartos
approved these changes
Nov 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Summary
header.ftl,aside.ftl,alert.ftl, andlanguage-selector.ftl, alongside the existingfooter.ftlhook, so custom themes can change brand content, side marketing/help text, alerts, and the locale selector without replacingtemplate.ftl.keycloak.v3switches to a two-column layout on wide viewports.