-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
Login-page a11y improvements #27193
Login-page a11y improvements #27193
Conversation
themes/src/main/resources/theme/base/login/resources/js/menu-button-links.js
Outdated
Show resolved
Hide resolved
themes/src/main/resources/theme/base/login/resources/js/menu-button-links.js
Outdated
Show resolved
Hide resolved
themes/src/main/resources/theme/base/login/resources/js/menu-button-links.js
Outdated
Show resolved
Hide resolved
themes/src/main/resources/theme/base/login/resources/js/menu-button-links.js
Outdated
Show resolved
Hide resolved
themes/src/main/resources/theme/base/login/resources/js/menu-button-links.js
Outdated
Show resolved
Hide resolved
themes/src/main/resources/theme/base/login/resources/js/menu-button-links.js
Outdated
Show resolved
Hide resolved
themes/src/main/resources/theme/base/login/resources/js/menu-button-links.js
Outdated
Show resolved
Hide resolved
Thanks for the review @jonkoops. Like I said in the PR-description, this is a script from W3C, which is now placed in this repo without any modifications. If you want all these changes, I think it is better to rewrite from scratch. But to be honest, treating this as a library-file is not so bad, is it? It's your choice obviously but I am not sure if I have the time currently to rewrite this file. Is there another way to incorporate this as a library file? |
If we are going to check something in it will have to be up to our code standards. If it is a library available on NPM it can be included as a 'common' package, which can be installed here. |
Thanks for your reply @jonkoops. Other scripts, like https://github.com/keycloak/keycloak/blob/main/themes/src/main/resources/theme/base/login/resources/js/base64url.js are also committed using functions that do not use the standards of Keycloak since they are just used as a library (I assume): Can't we commit this file in the same fashion? |
Yes, this is true as in this case this is being refactored in another PR (#27239) to match our code conventions. The convention generally is:
|
Thanks, I will try to find a moment to refactor then. I think this PR brings some useful accessibility fixes to the login-page. |
For sure, would love to land this! |
@jonkoops I think I have now implemented all your suggested changes. Please let me know if everything is okay now. |
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.
One small nit, otherwise LGTM
themes/src/main/resources/theme/base/login/resources/js/menu-button-links.js
Outdated
Show resolved
Hide resolved
@pkeuter Just FYI, we're developing a new login theme based on PatternFly 5, you might want to backport your efforts there as well. |
That's good to know. I'll look into that later. |
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.
approving as of @jonkoops's review.
The FIPS test failures are unrelated, we'll have to a rebase after those have been fixed under #27346 |
Signed-off-by: Peter Keuter <github@peterkeuter.nl>
Signed-off-by: Peter Keuter <github@peterkeuter.nl>
Signed-off-by: Peter Keuter <github@peterkeuter.nl>
Signed-off-by: Peter Keuter <github@peterkeuter.nl>
Signed-off-by: Peter Keuter <github@peterkeuter.nl>
Signed-off-by: Peter Keuter <github@peterkeuter.nl>
Signed-off-by: Peter Keuter <github@peterkeuter.nl>
Signed-off-by: Peter Keuter <github@peterkeuter.nl>
Closes #27190
Changes:
username
andcurrent-password
for the respective fieldsh4
toh2
to conform to spec (see a11y improvements on login page #27190)h2
styling to keycloak theme to let theh2
visually stay the same as theh4