Skip to content

fix(settings): a row's sentence is cut out over every control outside the rows - #3844

Merged
devswha merged 2 commits into
mainfrom
fix/settings-sentence-clears-buttons
Nov 14, 2026
Merged

devswha merged 2 commits into
mainfrom
fix/settings-sentence-clears-buttons

Conversation

@devswha

@devswha devswha commented Nov 14, 2026

Copy link
Copy Markdown
Owner

Summary

A Settings row's sentence (#3758) can lie over a button outside the rows and take its click. Two CI runs on unrelated PRs timed out on such a click, 30 s each:

In both, Playwright found the button visible, enabled and stable, but div.settings-help intercepted pointer events. The test had left the mouse resting on a row after a click, so that row's sentence opened, and a long Japanese or Korean sentence reached the button.

place() cut the sentence out (#3810) only over the controls of other .settings-rows: their children other than .settings-row-text. A page's Back is in the dialog's header, and the Alerts repair button is in a row's condition, inside .settings-row-text, so the sentence lay on both, and the pointer there was the sentence's. A user moving the mouse to either button met the same.

sentenceControls(row) now also counts every button, link and field in the row's dialog that is outside this row and outside the sentence, so the sentence is cut out over them as over another row's controls. This follows the rule #3810 set for the sentence: where it lies on a control, the pointer is the control's.

Validation

  • bun scripts/settings-rows-demo-regression.ts, settings-segmented-demo-regression.ts, push-health-demo-regression.ts and settings-pages-demo-regression.ts pass with the change (after bun run build).
  • bun run check fast passes, on main 6c64181.
  • Not reproduced locally. Six regression designs, from 1440 px down to 320 px, in English and Japanese, with the mouse resting on rows and with the keyboard on every control of Appearance and Alerts, found no sentence lying on Back, on main or with the change, so this PR adds no check that fails on main. The two CI logs above are the evidence for the cause; the next run of those scripts under load is the check that it is gone.
  • Seen on the way, not changed here: at 320 px in Japanese at text size 20, the Theme file row's ファイル形式 link lies over the row's name.

@coderabbitai

coderabbitai Bot commented Nov 14, 2026 •

Copy link
Copy Markdown

Explain Change →

Important

Review skipped

Auto incremental reviews are disabled on this repository.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review

No actionable comments were generated in the recent review.

Summary

Summary by CodeRabbit

  • Bug Fixes
    • Fixed settings sentences overlapping buttons outside their row, including the page’s Back button and buttons shown conditionally. These controls can now receive clicks as expected.

Settings sentence placement now considers interactive controls across the dialog, not only controls in other rows. This includes buttons outside the settings rows, such as Back and the conditional Alerts button.

Changes: Settings sentence placement

Layer / File(s) Summary
Collect and use dialog controls
src/components/SettingsControls.tsx, changelog.d/settings-sentence-clears-buttons.md
sentenceControls gathers controls from other rows and remaining dialog buttons, links, and form fields. RowSentence uses the expanded set when measuring controls. The changelog describes the affected buttons.

Estimated code review effort: 2 (Simple) | ~8 minutes

Change: Bug fix · Severity of issue fixed: Low

Merge Risk: Minimal · previous review ee511

Settings sentences should no longer intercept clicks on Back or the conditional Alerts button. No concrete merge-blocking risk was found. The author could not reproduce the original failure locally, so the next CI runs under load will confirm the fix.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: a Settings row's sentence is cut out over controls outside the rows. It matches the changeset, which extends sentenceControls to buttons, links and fields in the dialo…
Description check Passed The description follows the template. The Change section explains the problem (a row sentence lies over Back and Alerts buttons outside the rows), the cause (place() only checked other .settings-row c…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the main change: a Settings row's sentence is cut out over controls outside the rows. It matches the changeset, which extends sentenceControls to buttons, links and fields in the dialog outside the row. The title is specific and accurate, though it does not name the Back and Alerts buttons.

Full details: Description check

Explanation

The description follows the template. The Change section explains the problem (a row sentence lies over Back and Alerts buttons outside the rows), the cause (place() only checked other .settings-row children), and the resulting behavior. The Validation section lists the commands run, their results, and the unreproduced local status. It does not mention contract-test coverage, which the template asks for only on HTTP/WS changes. The changelog entry is present in the summary, though the description does not state the changelog file explicitly.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between af26e3a and ee511ef.

Files selected for processing: 2

  • changelog.d/settings-sentence-clears-buttons.md
  • src/components/SettingsControls.tsx

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 5 remain after this review.

@devswha
devswha merged commit 0970ad5 into main Nov 14, 2026
13 checks passed
@devswha
devswha deleted the fix/settings-sentence-clears-buttons branch November 14, 2026 10:23
@devswha

devswha commented Nov 14, 2026

Copy link
Copy Markdown
Owner Author

Merge pass

Merged head fa3e50d7e940 as 0970ad536682 on GitHub's checks, with no unresolved review threads.

Reviewer Verdict Note
claude CLEAR
codex CLEAR

Two reviewers at this head: Claude (Opus) CLEAR, Codex Terra CLEAR. Two heads were reviewed; this one adds the <summary> toggles both reviewers found missing (the More settings / Experimental fold, SaveFailure's Details, the panels' summaries) and tells other rows' controls apart by closest(). src/ only; outside the release freeze. From ci-loop: the fix for a flake family in which a Settings row's hover sentence lay over the page's Back button or the alerts hint's button and took the click (two CI logs; it never reproduced locally, so no check fails on main, as the PR says). A user moving to those buttons met the same.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant