+
Skip to content

Custom classes for checkbox are not applied on password reset form in keycloak.v2 login theme #39843

@jvllmr

Description

@jvllmr

Before reporting an issue

  • I have read and understood the above terms for submitting issues, and I understand that my issue may be closed without action if I do not follow them.

Area

login/ui

Describe the bug

For my theme which adapts the keycloak.v2 login theme I set kcCheckboxInputClass in my theme.properties file, but classes are not applied to the checkbox in the password reset and change password forms.

Version

26.2.4

Regression

  • The issue is a regression

Expected behavior

When I create a css class my-checkbox with checkbox color green and I declare kcCheckboxInputClass=my-checkbox pf-v5-c-check__input in theme.properties , I expect the checkbox to be green.

Actual behavior

Checkbox does not turn green because custom classes are not applied in password reset/change forms.

How to Reproduce?

  1. Create a theme with kcCheckboxInputClass=my-checkbox pf-v5-c-check__input in theme.properties.
  2. Add CSS to theme:
.my-checkbox {
  accent-color: green !important;
}
  1. Start keycloak with theme
  2. See that checkbox in login form is now green
  3. Go on to reset/change password
  4. See that checkbox is not green in reset/change form because class was not applied

Anything else?

Link to relevant template line:

<input class="pf-v5-c-check__input" type="checkbox" id="logout-sessions" name="logout-sessions" value="on" checked>

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载