Skip to content

fix: Constrain token autosuggest width in control groups - #5385

Open
amanabiy wants to merge 1 commit into
mainfrom
fix/control-group-token-overflow
Open

amanabiy wants to merge 1 commit into
mainfrom
fix/control-group-token-overflow

Conversation

@amanabiy

@amanabiy amanabiy commented Dec 4, 2026

Copy link
Copy Markdown
Member

Description

Autosuggest inline tokens can contribute to their control's intrinsic width when rendered inside a horizontal ControlGroup. This makes the group expand to show every token instead of collapsing them into the +N overflow count.

This restores the constrained token field container removed in #5207, so overflow is calculated against the width assigned by ControlGroup. It also adds integration coverage for the collapsed token count.

Related links: #5207, #5145

How has this been tested?

ESLint, Stylelint, and Prettier pass for the changed files. The token overflow hook suite passes with 12 tests. The new browser integration test verifies that the two inline tokens collapse to +2 inside ControlGroup.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@codecov

codecov Bot commented Dec 4, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.87%. Comparing base (c3641d8) to head (b1d1181).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5385   +/-   ##
=======================================
  Coverage   97.87%   97.87%           
=======================================
  Files        1018     1018           
  Lines       32955    32955           
  Branches    12222    12222           
=======================================
  Hits        32256    32256           
  Misses        693      693           
  Partials        6        6           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

This branch was successfully deployed

3 active deployments
dev-pages-react16 — b1d1181c Deployed Dec 4, 2026 by amanabiy via deploy (React 16) / deploy #3625
dev-pages-react18 — b1d1181c Deployed Dec 4, 2026 by amanabiy via deploy (React 18) / deploy #3625
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