-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Improve a11y by providing the current language in theme HTML #20213
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
|
@jaylinski we actually have an issue open to implement this #19965 for all of the UIs, would you be willing to implement that under this PR? |
|
@jonkoops Thanks for referencing the issue! I pushed the changes. I took a look at the UI tests. Should I write a test for it? Something like this: |
|
@jaylinski if you are up for writing some tests to verify this code works that would be awesome yeah. |
ghost
left a comment
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.
Unreported flaky test detected, please review
Unreported flaky test detectedIf the below flaky tests below are affected by the changes, please review and update the changes accordingly. Otherwise, a maintainer should report the flaky tests prior to merging the PR. org.keycloak.testsuite.model.infinispan.CacheExpirationTest#testCacheExpirationKeycloak CI - Store Model Tests org.keycloak.testsuite.model.infinispan.CacheExpirationTest#testCacheExpirationKeycloak CI - Store Model Tests |
|
@jaylinski any progress on those tests? :) |
@jonkoops I added a test for the login-page. Please review. Note that I only added the |
|
Very nice, thanks for adding some tests! Would it also be possible to add another test for the Account Console?
I think that is valid yes, we can split these missing ones out into separate issues and resolve them later. |
|
@ssilvert could I ask you to review the Java code as well? It looks good to me, but I prefer to have another expert look 😉 |
ssilvert
left a comment
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.
LGTM
Providing a lang attribute with a valid language tag according to "RFC 5646: Tags for Identifying Languages (also known as BCP 47)" on the
<html>element will help screen reading technology determine the proper language to announce. The identifying language tag should describe the language used by the majority of the content of the page. Without it, screen readers will typically default to the operating system's set language, which may cause mispronunciations.Source
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/html#accessibility_concerns
Closes #19965