8000 Name the masthead options toggle shown on narrow screens by atishay-kasliwal · Pull Request #54780 · keycloak/keycloak · GitHub
[go: up one dir, main page]

Skip to content

Name the masthead options toggle shown on narrow screens - #54780

Merged
edewit merged 1 commit into
keycloak:mainfrom
atishay-kasliwal:fix/54360-masthead-kebab-accessible-name
Nov 9, 2026
Merged

edewit merged 1 commit into
keycloak:mainfrom
atishay-kasliwal:fix/54360-masthead-kebab-accessible-name

Conversation

@atishay-kasliwal
Copy link
Copy Markdown
Contributor

Closes #54360.

The issue suggested t("options"), but that key doesn't exist in either console's messages, so options=Options was added to both the account and admin bundles. Without it, a screen reader would announce the raw key, and translators couldn't pick it up.

KeycloakDropdown gets an optional toggleLabel prop rather than a fixed label, because only the kebab variant has no visible text. The desktop dropdown keeps showing the user's name as its accessible name.

The tests in mobile-nav.spec.ts and masthead/main.spec.ts fail without this change and pass with it. Run in Chromium against a nightly server with these message files patched into the account and admin themes. ESLint, TypeScript and the ui-shared unit tests pass.

The navigation toggle has the same gap: t("navigation") has no message key in either bundle. Left out to keep this change focused; can send separately.

Assisted-by: Claude Opus 5.5

Closes keycloak#54360

Signed-off-by: Atishay Kasliwal <katishay@gmail.com>
@atishay-kasliwal
atishay-kasliwal marked this pull request as ready for review November 6, 2026 16:54
@atishay-kasliwal
atishay-kasliwal requested review from a team as code owners November 6, 2026 16:54
Copilot AI balanced review requested due to automatic review settings November 6, 2026 16:54
Copilot AI left a comment
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues are reported for the change adding a localized accessible name to the mobile masthead toggle.

No open issues 🎉

What changed in this PR

Addresses #54360 by giving the shared masthead’s narrow-screen options toggle a localized accessible name in both consoles, while preserving the desktop dropdown’s username label.

Changes:

  • Adds an optional toggleLabel prop and supplies it for the kebab toggle.
  • Adds the English options message to both console bundles.
  • Adds accessible-name regression assertions for both mobile mastheads.
File Description
js/​libs/​ui-shared/​src/​masthead/​Masthead.tsx Supplies the translated options label.
js/​libs/​ui-shared/​src/​masthead/​KeycloakDropdown.tsx Passes the optional label to MenuToggle via aria-label.
js/​apps/​ 8000 admin-ui/​test/​masthead/​main.spec.ts Checks the mobile toggle’s accessible name.
js/​apps/​admin-ui/​maven-resources/​theme/​keycloak.v2/​admin/​messages/​messages_en.properties Adds the admin console’s English options label.
js/​apps/​account-ui/​test/​mobile-nav.spec.ts Checks the mobile toggle’s accessible name.
js/​apps/​account-ui/​maven-resources/​theme/​keycloak.v3/​account/​messages/​messages_en.properties Adds the account console’s English options label.

Review effort: Balanced

@edewit
edewit enabled auto-merge (squash) November 9, 2026 08:17
@edewit
edewit merged commit 83f0b88 into keycloak:main Nov 9, 2026
95 checks passed
edewit added a commit to edewit/keycloak that referenced this pull request Nov 12, 2026
Restore toggleLabel / aria-label on the icon-only MenuToggle so the
mobile options control has accessible name "Options", matching keycloak#54780.

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
edewit added a commit to edewit/keycloak that referenced this pull request Nov 13, 2026
Restore toggleLabel / aria-label on the icon-only MenuToggle so the
mobile options control has accessible name "Options", matching keycloak#54780.

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
edewit added a commit to edewit/keycloak that referenced this pull request Nov 16, 2026
Restore toggleLabel / aria-label on the icon-only MenuToggle so the
mobile options control has accessible name "Options", matching keycloak#54780.

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
edewi 10000 t added a commit to edewit/keycloak that referenced this pull request Nov 17, 2026
Restore toggleLabel / aria-label on the icon-only MenuToggle so the
mobile options control has accessible name "Options", matching keycloak#54780.

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
edewit added a commit to edewit/keycloak that referenced this pull request Nov 24, 2026
Restore toggleLabel / aria-label on the icon-only MenuToggle so the
mobile options control has accessible name "Options", matching keycloak#54780.

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
edewit added a commit to edewit/keycloak that referenced this pull request Dec 2, 2026
Restore toggleLabel / aria-label on the icon-only MenuToggle so the
mobile options control has accessible name "Options", matching keycloak#54780.

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
edewit added a commit to edewit/keycloak that referenced this pull request Dec 3, 2026
Restore toggleLabel / aria-label on the icon-only MenuToggle so the
mobile options control has accessible name "Options", matching keycloak#54780.

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
edewit added a commit to edewit/keycloak that referenced this pull request Dec 3, 2026
Restore toggleLabel / aria-label on the icon-only MenuToggle so the
mobile options control has accessible name "Options", matching keycloak#54780.

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
edewit added a commit to edewit/keycloak that referenced this pull request Dec 3, 2026
Restore toggleLabel / aria-label on the icon-only MenuToggle so the
mobile options control has accessible name "Options", matching keycloak#54780.

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
rmartinc pushed a commit to edewit/keycloak that referenced this pull request Dec 4, 2026
Restore toggleLabel / aria-label on the icon-only MenuToggle so the
mobile options control has accessible name "Options", matching keycloak#54780.

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
rmartinc pushed a commit that referenced this pull request Dec 4, 2026
* Upgrade Account UI to PatternFly 6 and introduce Account v4

Migrate account-ui to PF6 using codemods, add ui-shared-pf6 for PF6 shared
components, rename keycloak.v3 theme to keycloak.v4, and replace
ACCOUNT_V3 with ACCOUNT_V4. Remove deprecated PF Modal/ChipGroup usage,
update the loading spinner to PF6 classes, and add a migration script.

Closes #52344

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* Address Copilot review feedback for Account PF6 migration

Fix pnpm workspace alias and lockfile, restore ui-shared in the Maven
reactor, guard typeahead keyboard handling, correct PF6 utility class,
update v4 theme descriptions, and refresh localization docs.

Closes #52344

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* Add PF6 modal accessible names and harden migration script

Set aria-label on composable modals so dialogs have an accessible name,
and extend the PF6 migration script to scan theme files and skip apply
when --fail-on-unresolved finds residual PF5 markers.

Closes #52344

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* Fix account-ui lint formatting for CI

Apply prettier fixes flagged by the Account UI CI lint job.

Closes #52344

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* Address Copilot review feedback for Account PF6 follow-ups

Fix multiselect handling, typeahead accessibility, storage hook dependencies, migration temp cleanup, and wire PF6 shared library tests into CI.

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* Update WebAuthn account page objects for Account PF6 UI

Align Arquillian selectors with the PF6 masthead dropdown and PatternFly 6 class names so WebAuthn IT can sign out from the account console.

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* Address remaining Copilot review feedback and fix DCO blockers

Harden typeahead keyboard handling, accessibility, migration validation, PF6 lint in CI, and WebAuthn alert locators.

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* Fix broken pnpm lockfile and remaining Account PF6 review issues.

Regenerate the lockfile so frozen installs succeed in CI, and address Copilot findings that would break auth cleanup, credential links, pagination, and WebAuthn alert locators.

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* Fix deprecated Vitest matchers in ui-shared-pf6 lint.

Align useSetTimeout tests with the shared package so CI lint no longer fails on toBeCalled/toThrowError.

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* Add subscribeActionUpdate to ui-shared-pf6 KeycloakContext

Port action-update subscription support from ui-shared so Account UI
Root compiles after merging main.

Closes #52344

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* Show OAuth access_denied on Account ErrorPage for PF6

keycloak-js rejects with a plain { error, error_description } object;
pass it to getNetworkErrorMessage so TermsAndConditionsTest can find
"Access denied" after declining terms.

Closes #52344

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* Name the PF6 masthead options kebab toggle

Restore toggleLabel / aria-label on the icon-only MenuToggle so the
mobile options control has accessible name "Options", matching #54780.

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* Migrate legacy account themes to keycloak.v4 on upgrade

Add Liquibase and MigrateTo27_0_0 handling for Account Console themes
removed by the PF6 port, plus upgrade/release notes.

Closes #52344

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* Address remaining Copilot findings for Account PF6

Render the account masthead logo with MastheadLogo so brand.href is a
real link, align the WebAuthn header mobile breakpoint with the md
toggle, and document that the account PF6 helper only accepts Account
UI source packages.

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* Fix broken pnpm lockfile for @patternfly/patternfly resolution.

Account UI imported 6.6.1 without a packages entry; resolve ^6.6.1 to 6.7.0 so frozen installs succeed in CI.

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* Fix Account PF6 header layout, alignment, and dark mode.

Address review feedback by restoring MastheadMain, using PF6 end-alignment utilities, and syncing the dark theme class from environment preferences.

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* Upgrade Account UI PatternFly dependencies to 6.7.0.

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* Fix masthead link alignment

Signed-off-by: Martin Bartoš <mabartos@redhat.com>
Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* Version change via the set-version scrip
8000
t

Signed-off-by: Martin Bartoš <mabartos@redhat.com>
Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* Fix testing of the masthead

Signed-off-by: Martin Bartoš <mabartos@redhat.com>
Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* Address Account PF6 review feedback on dark mode, colors, and migration.

Leave dark mode to index.ftl so custom kcDarkModeClass works, use a real PF6 subtle text utility, make the migration script spawn reliably on Windows, document post-apply dependency bumps, and include ui-shared-pf6 in release downloads.

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* Fix PF6 select selection state to use option keys and isSelected.

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* Update Organizations page

Signed-off-by: Martin Bartoš <mabartos@redhat.com>
Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* Keep the verificable credentials consistent

Signed-off-by: Martin Bartoš <mabartos@redhat.com>
Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* fixed build

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* Enhance date formatting with resolved language

Updated formatCredentialDate to use resolved language for date formatting.

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Erik Jan de Wit <edewit@redhat.com>
Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* fixed merge error

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* fix co-pilot review comment

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

* Remove leftover account VC user-attributes dialog.

Attributes were intentionally dropped from the account console for privacy; clean up the unreachable dialog and unused English messages.

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>

---------

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
Signed-off-by: Martin Bartoš <mabartos@redhat.com>
Signed-off-by: Erik Jan de Wit <edewit@redhat.com>
Co-authored-by: Martin Bartoš <mabartos@redhat.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
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.

Account Console / Admin Console masthead: the narrow-width "options-kebab" MenuToggle has no accessible name (axe button-name, WCAG 4.1.2)

3 participants

0