Skip to content

fix(settings): add padding around dropdown arrows - #1836

Merged
devswha merged 2 commits into
devswha:mainfrom
duarteocarmo:fix/settings-dropdown-spacing
Oct 25, 2026
Merged

devswha merged 2 commits into
devswha:mainfrom
duarteocarmo:fix/settings-dropdown-spacing

Conversation

@duarteocarmo

Copy link
Copy Markdown
Contributor
  • Inset Settings dropdown chevrons to match the text padding, following T3 Code's padded select indicator.

  • Keep native selects and OS pickers, keyboard selection, and the native indicator in forced-colors mode. This does not change mobile font sizes.

  • Validation: bun run check fast passed with an isolated TMPDIR: 6,374 tests passed, 19 skipped. bun scripts/settings-pages-demo-regression.ts passed on desktop and at 320px/390px across all four UI languages, including arrow geometry, keyboard selection and forced colors. The new arrow check fails on the original code. Mobile checks use Chromium emulation, not a physical phone.

  • Desktop before and after, captured from the fictional demo with identical settings at 1280 × 800. Images are hosted separately in the fork and are not part of this PR's diff.

    Before After
    Desktop before Desktop after
  • Mobile before and after at 390 × 760.

    Before After
    Mobile before Mobile after

@coderabbitai

coderabbitai Bot commented Oct 24, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

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
  • Source mode: Auto
  • Repository: devswha/ovis
  • Branch: main
  • File: .coderabbit.yaml
  • Commit: 718f0e0
  • Layers: Repository YAML
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 61740756-291d-47ab-b9d5-5dec0195a61e

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.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: devswha/ovis
  • Branch: main
  • File: .coderabbit.yaml
  • Commit: 578a64f
  • Layers: Repository YAML
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: b6096140-adf0-4fa8-bb65-af59a3dc1097
Commits

Reviewing files that changed from the base of the PR and between 578a64f and 6fc3e84.

Files selected for processing: 6
  • DESIGN.md
  • changelog.d/settings-select-chevron-spacing.md
  • scripts/settings-pages-demo-regression.ts
  • src/components/SettingsControls.css
  • src/components/SettingsControls.tsx
  • src/components/SettingsDialog.tsx

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

📝 Summary

Summary by CodeRabbit

  • Bug Fixes
    • Settings dropdown arrows now have consistent spacing from the right edge and remain clear of option text.
  • Accessibility
    • Dropdowns retain native selection and keyboard behavior. In forced-colors mode, the system indicator is restored for improved visibility.
  • Documentation
    • Settings guidance now describes the dropdown appearance and behavior.

Settings dialogs now use a reusable select control with an inset decorative chevron. The control reserves space for the chevron and restores the native indicator in forced-colors mode. Regression checks cover its rendering and native select behavior.

Changes: Settings Select Chevron

Layer / File(s) Summary
Reusable select control
src/components/SettingsControls.tsx, src/components/SettingsControls.css, DESIGN.md, changelog.d/settings-select-chevron-spacing.md
Added SettingsSelect, which forwards native select props and children and renders a decorative chevron. The styling reserves space for the chevron and restores the native indicator in forced-colors mode. The design document and changelog describe the control and inset arrow.
Settings integration and checks
src/components/SettingsDialog.tsx, scripts/settings-pages-demo-regression.ts
Replaced Settings dialog native selects with SettingsSelect while keeping their options and update behavior. Regression checks cover chevron placement, keyboard selection, and forced-colors behavior.

Priority: Low

Estimated code review effort: 3 (Moderate) | ~20 minutes

Change: Bug fix

Suggested reviewers: devswha

Merge Risk: Minimal · up to 6fc3e

The dropdown change is mergeable after normal checks; no material user-facing risk is established.

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 25.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 8 functions across 3 files. (3 skipped: 3… Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 4 passed
Check name Status Explanation
Description check Passed The description covers the change, its intent, and validation. It states the purpose (inset chevrons to match text padding, citing T3 Code's padded select indicator), the behavior that stays the same …
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.
Title check Passed The title clearly and concisely describes the main change: adding inset spacing around Settings dropdown arrows.
Full details: Description check

Explanation

The description covers the change, its intent, and validation. It states the purpose (inset chevrons to match text padding, citing T3 Code's padded select indicator), the behavior that stays the same (native selects, OS pickers, keyboard selection, forced-colors indicator), and the validation run (check fast, regression script, desktop and mobile sizes). It includes before/after screenshots. The template asks for a changelog entry in changelog.d/, and the raw summary shows one was added. The description does not mention the changelog, and it does not link an issue. The template's issue link applies to features, and this is a fix, so no link is needed. The changelog mention is optional for this check because the diff includes it.

Full details: Docstring Coverage

Explanation

Docstring coverage is 25.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 8 functions across 3 files. (3 skipped: 3 unsupported.)

Resolution

Write docstrings for the functions missing them to satisfy the coverage threshold.

Finishing Touches
🧪 Generate unit tests (beta)
  • 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

Comment @coderabbitai help to get the list of available commands.

@duarteocarmo duarteocarmo changed the title fix(settings): inset dropdown chevrons fix(settings): add padding around dropdown arrows Oct 24, 2026
@devswha
devswha force-pushed the fix/settings-dropdown-spacing branch from 6fc3e84 to d75f9fe Compare October 25, 2026 03:24
@devswha

devswha commented Oct 25, 2026

Copy link
Copy Markdown
Owner

Rebased onto main a1e4f8b83, preserving both main's newer Settings search/StrictMode regressions and this PR's select-arrow checks.

  • Native selects, keyboard selection and OS pickers remain; the Lucide indicator is decorative and click-through, with token-based spacing. Forced-colors mode restores the native indicator.

  • Extended the demo evidence matrix to capture Appearance at 1280x800 and mobile 390x844 in both light and dark modes.

  • Targeted settings, UI/tooling conventions and changelog tests: 116 passed, 0 failed.

  • The same regression fails on exact main at the missing inset-chevron assertion. The final demo run passes all Settings pages at 390px/320px across four languages, native keyboard/forced-colors checks, theme/history regressions, 47 searches at desktop/phone widths and the development StrictMode checks.

  • Inspected all four 1280x800/390x844 light/dark captures: arrows are centered and consistently inset, text stays clear of them, and no controls clip or overlap.

  • dori heavy ext-pr-review -- bun run check fast: 6,718 passed, 0 failed, 13 skipped; generated files, typecheck and build passed, and the report verifies unchanged final source.

Pushed the conflict-resolution rebase and the separate screenshot-coverage commit together once. No further runtime changes were needed.

Review prepared with a code-review agent and checked against the code. The merge decision stays with the maintainer's merge pass.

@devswha

devswha commented Oct 25, 2026

Copy link
Copy Markdown
Owner

Merge pass review-work report. Overall: PASSED. This is an outside-contributor PR, and the maintainer approved merging it in this pass. The ext-pr-review lane verified it; see its comment above.

Lane Verdict
Codex (gpt-6.1-sol, xhigh) APPROVE
Code review (omo-native-code-reviewer) PASS

The settings dropdowns now have padding around their arrow.

  • The spacing uses only --space-* tokens.
  • Native selects and OS pickers are kept. The arrow passes clicks through to the select, and forced-colors mode restores the native arrow.
  • DESIGN.md names T3 Code as the design precedent, as src/AGENTS.md requires.
  • The settings demo regression passes, along with 68 convention and settings tests. No test uses a fixed sleep.

LOW follow-ups:

  • The chevron uses --text-strong; a dim colour is a possible alternative.
  • One keyboard assertion is weak.

CodeRabbit did not review this PR (rate-limited or skipped). The reviews above stand in for it.

@devswha
devswha merged commit 0ea674a into devswha:main Oct 25, 2026
11 checks passed
devswha pushed a commit that referenced this pull request Oct 25, 2026
main's Settings selects now go through SettingsSelect, which insets the chevron (#1836); the
Interface font select was still a bare select, which settings-pages-demo-regression catches.
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.

2 participants