-
Notifications
You must be signed in to change notification settings - Fork 7.7k
Removed hard-coded LTR dir attribute in inputs in configure OTP template #33652
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This should be done in the html opening tag only (see issue keycloak#33642) Closes keycloak#32844 Signed-off-by: Jon Haynes <senyahnoj@gmail.com>
Thanks for the PR @senyahnoj. I'll also mark the issue as something to backport for v26 so that we can put this fix in a patch release. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the PR. The old theme had additional hard-coded dir
attributes whenever there was a password with the show-password-toggle.
<div class="${properties.kcInputGroup!}" dir="ltr"> | |
<input tabindex="2" id="password" class="${properties.kcInputClass!}" name="password" | |
type="password" autocomplete="on" autofocus | |
aria-invalid="<#if messagesPerField.existsError('password')>true</#if>" | |
/> | |
<button class="${properties.kcFormPasswordVisibilityButtonClass!}" type="button" aria-label="${msg('showPassword')}" | |
aria-controls="password" data-password-toggle | |
data-icon-show="${properties.kcFormPasswordVisibilityIconShow!}" data-icon-hide="${properties.kcFormPasswordVisibilityIconHide!}" | |
data-label-show="${msg('showPassword')}" data-label-hide="${msg('hidePassword')}"> | |
<i class="${properties.kcFormPasswordVisibilityIconShow!}" aria-hidden="true"></i> | |
</button> | |
</div> |
Can you please comment if this should be restored? This was the original intent for this issue.
Thanks @ahus1, I've had a look at the base theme as well and I see the hard-coded dir=ltr in a few places. Given that it's set in the HTML tag there is no need to override it. I am new to contributing to this project but from the guidelines it looks like a single/rebased commit per issue is desirable. Therefore I'll close this PR and create a new one with the fix in both keycloak.v2 and base themes. |
True, this is desired. If there is a good reason to keep two commits, that is possible when there is a justification. You can also agree with the reviewer to keep different commits for the review, and then the final approver will squash the changes when merging them to main. |
Re-opening PR as we have decided to only make the change in keycloak.v2 theme |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for everyone involved in this, and the discussions we had to find the right fix.
Thanks @senyahnoj. I went ahead and created the backport as well: #33754 |
This should be done in the html opening tag only (see issue #33642)
Closes #32844