Bootstrap 5 Modal: native keyboard baseline and a stricter journey contract #43396
PerchAnton
started this conversation in
Show & Tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I made a small consumer for published Bootstrap 5.3.9, separate from the Bootstrap 6 main branch. It uses the existing Modal data API with an Edit profile form.
The ordinary Playwright check passes: reach the trigger by Tab, open with Enter, confirm focus inside, close with Escape, and return to the trigger. A stricter KeyTrail contract records
FOCUS_MISMATCHatD04.forward.003, withbodyobserved at the tab boundary. This stays a failed journey, not a claimed Bootstrap fix or a passing compatibility result.Source and reproduction commands contains runnable development/production checks and attached JSON/HTML evidence. Both local runs agree on Chrome 157/macOS ARM without retries. The observation alone does not prove a permanent focus escape; later recovery and browser chrome are not covered.
I maintain KeyTrail. The useful comparison is a small native assertion versus an explicit app-level focus-order contract with the first failing checkpoint. No Bootstrap dependency or core change is proposed.
All reactions