Repository navigation
Reach the step's focus from the keyboard in every engine - #112
Merged
Merged
Conversation
pournasserian
commented
Nov 28, 2026
pournasserian
left a comment
Member
Author
There was a problem hiding this comment.
Coordinator review of 5dc9dd4: the only changed file is the #70 keyboard/focus test. Confirmed the red three-row Firefox/WebKit results, observed keyboard modality evidence on main, and green three-mode checks on all three Playwright engines locally. Real Tab reaches the number input and its ring before focus moves to the step. No skip, longer timeout, production markup/JS/CSS change, or removal of pressed/hover checks. Accept this focused fix conditional on full exact-head PR CI. The hosted cross-engine run on combined #70/#73/#74 will still be needed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #70 (PR #107). This fixes the test
AStepButtonShowsHoverPressAndFocus, which fails in Firefox and WebKit in nightly 46168239715 (NumberInputTests.cs:191,:focus-visiblefalse).Cause: input modality in the test, not missing visible focus
A probe on unchanged main 533540c, run in local Playwright Chromium 156.0.8078.4, Firefox 157.0 and WebKit 27.2, found:
:focus-visible.el.focus()on the element that already has focus does nothing, so:focus-visiblestays false.:focus-visible, the box shows its ring) and script then moves focus to the step, the step is:focus-visiblewith asolidoutline in all three engines.So the CSS draws the ring correctly. Only the test's way of reaching keyboard focus depended on Chromium's heuristic.
Change, test only
The test Tabs, with the real keyboard, to the number input that the step belongs to. It asserts that the input is
:focus-visibleand that its box draws the ring. Script then moves focus to the step, which is checked for focus,:focus-visibleand a solid outline.tabindex="-1".Evidence (local Windows arm64)
$env:FLUENTCMS_BROWSER=<engine>; dotnet test --project tests/FluentCMS.Components.Browser --no-build --filter-method '*AStepButtonShowsHoverPressAndFocus':--minimum-expected-tests 3: chromium, firefox and webkit each exit 0, 3/3 passed.*NumberInputTestsclass: exit 0, 19/19 passed.Refs #70