From 490815f1f0dbc616ab171550b52e7e6050d79ec1 Mon Sep 17 00:00:00 2001 From: Geremia Taglialatela Date: Thu, 8 Jan 2026 14:12:44 +0100 Subject: [PATCH] Wrap required indicators with "required" span Some asterisks indicating required fields in `user-profile-commons.ftl` and `register.ftl` are not wrapped in a `` tag. This caused incorrect styling in custom themes that inherit the base theme. Update the markup to wrap required field indicators with ``, matching the rest of the theme and ensuring consistent styling. Closes #45058 Signed-off-by: Geremia Taglialatela --- themes/src/main/resources/theme/base/login/register.ftl | 6 ++++-- .../resources/theme/base/login/user-profile-commons.ftl | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/themes/src/main/resources/theme/base/login/register.ftl b/themes/src/main/resources/theme/base/login/register.ftl index c0546c73a52..8668d08f197 100755 --- a/themes/src/main/resources/theme/base/login/register.ftl +++ b/themes/src/main/resources/theme/base/login/register.ftl @@ -17,7 +17,8 @@ <#if passwordRequired?? && (attribute.name == 'username' || (attribute.name == 'email' && realm.registrationEmailAsUsername))>
- * + + *
@@ -44,7 +45,8 @@
* + class="${properties.kcLabelClass!}">${msg("passwordConfirm")} + *
diff --git a/themes/src/main/resources/theme/base/login/user-profile-commons.ftl b/themes/src/main/resources/theme/base/login/user-profile-commons.ftl index 0beda890041..286efb379c8 100644 --- a/themes/src/main/resources/theme/base/login/user-profile-commons.ftl +++ b/themes/src/main/resources/theme/base/login/user-profile-commons.ftl @@ -42,7 +42,7 @@
- <#if attribute.required>* + <#if attribute.required>*
<#if attribute.annotations.inputHelperTextBefore??>