After a plan change confirmed in the dialog on the Products page, keyboard focus falls back to the top of the page #302
Open
opened 2026-10-30 22:51:33 +00:00 by cgalo5758
·
0 comments
Labels
Clear labels
accessibility
area/billing
area/catalog
area/discourse
area/domains
area/entitlements
area/fedwiki
area/identity
area/integrations
area/licensing
area/member-ui
area/meta
area/operator-ui
area/ops
area/testing
duplicate
good-first-issue
invalid
privacy
security
upstream
wontfix
A barrier for people using assistive technology or a keyboard alone.
The Stripe mirror, checkout, subscriptions, invoices, fulfillment.
Products, prices, plan ladders, purchasability.
The Discourse integration.
The domains registry, claims, placements, the certificate ask.
Entitlement sets, rules, grants, pools, provisioning.
The Federated Wiki integration and farm sync.
Sign-in, sessions, persons, organizations, workspaces, roles.
The provider registry, outbox and webhooks in general.
Licenses, the contributor agreement, SPDX headers.
Member pages.
The repository itself, its contributing guide, CI, the tracker and the workflow.
Operator pages, forms, lists, the design system.
Deployment, configuration, migrations, workflows, instance settings.
The test stack, screens, lint, walkthroughs.
Closed because another issue already covers it.
Small, self-contained, and explained enough to be a first contribution.
Closed because it is not a ticket for this repository.
Touches what a person's data reveals.
Touches authentication, authorization, secrets or data exposure.
Waits on another repository or project before it can move.
Closed because it will not be done, with the reason in the last comment.
kind
bug
The software does something other than what it promises; closed when it again does what it promises.
kind
debt
Code, tests or tooling to clean up with nothing visible changing; closed when they are cleaner.
kind
design
A question to settle before work can be defined; closed when the decision is written down.
kind
docs
Documentation that is wrong or missing; closed when it says the right thing.
kind
enhancement
Something the software does not do yet; closed when it does.
priority
critical
Blocks the active milestone or harms members now.
priority
high
Next in line inside the active milestone.
priority
low
Inside the active milestone, when nothing else is left.
priority
medium
Inside the active milestone, after the high ones.
Milestone
No items
No Milestone
Projects
Clear projects
No projects
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: wiki-cafe/member-console#302
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
What happens
The Products page is the member page that lists the plans an organization can hold and lets a member switch, resume or cancel one. Those buttons open one shared confirm dialog. When the member confirms a switch, the console answers by re-rendering the whole Plans region,
#member-plans, with a banner saying the change was submitted (internal/server/member_plan_forms.go:30-31,internal/server/member_plan_moves.go:297,:453).The button that opened the dialog sits inside that region (
internal/embeds/templates/partials/member_plans.html:195-200, insideinternal/embeds/templates/products.html:53), so the answer removes it. The dialog's script then closes the dialog, because the answer landed outside it (internal/embeds/static/confirm-action-modal.js:156-164). Bootstrap, the CSS and JavaScript library the dialog is built on, returns focus to the button that opened a dialog only while that button is still visible, and a removed button is not (internal/embeds/static/bootstrap.bundle.js:4499-4502,:147-148). Focus ends on the page body. The next Tab starts at the top of the page, and a keyboard user has to tab through the navigation again to get back to their plans.Resume plan and Cancel plan answer into the same region (
member_plans.html:155-165,:168-178) and leave focus in the same place, as does a switch preview the console refuses (member_plan_moves.go:135-138). Any other use of the shared dialog whose answer replaces the control that opened it does the same.What should happen
After the dialog closes, focus lands on something that says what happened: the banner at the top of the re-rendered Plans region, or the card of the plan now held. An
autofocusin the re-rendered region is not enough by itself: htmx focuses it during the swap, while the dialog is still open, and the dialog's focus trap moves focus back inside the dialog (bootstrap.bundle.js:4095-4110); the trap is released only when the dialog starts to close (:4321).Where
internal/embeds/static/confirm-action-modal.js:138-171;internal/server/member_plan_moves.go:419-469;internal/embeds/templates/partials/member_plans.html:10-25,:155-200Steps
docs/testing.mdcovers the test stack and the Stripe sandbox).Why it matters
docs/design-system.md:314-315promises that modals restore focus; here a keyboard or screen-reader user loses their place after every plan change and has to find the plans again from the top of the page.