+
Skip to content

Conversation

senyahnoj
Copy link
Contributor

This should be done in the html opening tag only (see issue #33642)

Closes #32844

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>
@senyahnoj senyahnoj requested review from a team as code owners October 7, 2024 16:19
@jonkoops
Copy link
Contributor

jonkoops commented Oct 7, 2024

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.

Copy link
Contributor

@ahus1 ahus1 left a 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.

@senyahnoj
Copy link
Contributor Author

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.

@senyahnoj senyahnoj closed this Oct 8, 2024
@senyahnoj senyahnoj deleted the keycloak.v2-login-hardcoded-dir branch October 8, 2024 07:37
@ahus1
Copy link
Contributor

ahus1 commented Oct 8, 2024

it looks like a single/rebased commit per issue is desirable

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.

@senyahnoj senyahnoj restored the keycloak.v2-login-hardcoded-dir branch October 8, 2024 15:47
@senyahnoj
Copy link
Contributor Author

Re-opening PR as we have decided to only make the change in keycloak.v2 theme

@jonkoops jonkoops requested a review from ahus1 October 9, 2024 15:38
Copy link
Contributor

@ahus1 ahus1 left a 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.

@ahus1 ahus1 merged commit df30358 into keycloak:main Oct 9, 2024
140 checks passed
@jonkoops
Copy link
Contributor

jonkoops commented Oct 9, 2024

Thanks @senyahnoj. I went ahead and created the backport as well: #33754

@senyahnoj senyahnoj deleted the keycloak.v2-login-hardcoded-dir branch October 9, 2024 15:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Login V2: Missing "dir" attributes

3 participants

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