fix: stuck hover on focus for header and restart button (@byseif21)#7434
Open
byseif21 wants to merge 3 commits intomonkeytypegame:masterfrom
Open
fix: stuck hover on focus for header and restart button (@byseif21)#7434byseif21 wants to merge 3 commits intomonkeytypegame:masterfrom
byseif21 wants to merge 3 commits intomonkeytypegame:masterfrom
Conversation
Miodec
reviewed
Feb 27, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Fixes UI elements getting visually “stuck” in hover styling when the test enters focus mode (cursor hidden / focus state applied), specifically for header controls and the restart/config UI on the test page.
Changes:
- Consolidates focus-mode opacity rules in
test.scssand includes#restartTestButtonin the elements hidden duringmain.focus. - Disables pointer interactions on
header.focusto prevent hover state from persisting when entering focus mode.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
frontend/src/styles/test.scss |
Hides additional test-page controls (including restart) in focus mode via opacity. |
frontend/src/styles/nav.scss |
Prevents hover/click interactions on the header while in focus mode using pointer-events: none. |
Miodec
requested changes
Feb 28, 2026
Member
Miodec
left a comment
There was a problem hiding this comment.
When quick restart is disabled, tabbing over to the restart test button doesn't make it visible.
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.
starting the test while hovering header buttons or restart button leave them stuck in a hover on focus