Skip to content

fix(grid): ensure single long filter chip shrinks to cell width with ellipsis - 22.2.x - #17878

Open
desig9stein wants to merge 6 commits into
22.2.xfrom
mpopov/fix-filtering-row-chip-ellipsis-22.2.x
Open

desig9stein wants to merge 6 commits into
22.2.xfrom
mpopov/fix-filtering-row-chip-ellipsis-22.2.x

Conversation

@desig9stein

Copy link
Copy Markdown
Contributor

Closes #17375

Port of #17873 to 22.2.x.

Description

A single filter chip with a long label was never allowed to shrink (min-width: max-content; flex-shrink: 0 on the chip host), so it overflowed the filter cell and was clipped by the column edge instead of ending with an ellipsis.

A lone chip in the filter cell can now shrink down to its min-content width. The label collapses and shows an ellipsis, while the condition and remove icons keep their size. Only a column narrower than the icons still clips the chip, as before. Chips keep their natural width when a column has more than one, so the "more filters" count logic is unchanged.

Same changes as on master: the hidden "more filters" indicator keeps its width but hides its icon (the unlayered igx-icon display rule beat the layered display: none on the child, so every filtered column carried a phantom 20px icon), the connector keeps its text width, and the chips area spans the full cell again so the visible-chips measurement compares against the available width.

Motivation / Context

#17375

Type of Change (check all that apply):

  • Bug fix
  • New functionality
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Refactoring (no functional changes)
  • Documentation
  • Demos
  • CI/CD
  • Tests
  • Changelog
  • Skills/Agents

Component(s) / Area(s) Affected:

Grid (filtering row chips), Theming

How Has This Been Tested?

  • Unit tests
  • Manual testing
  • Automated e2e tests

Added a spec in grid-filtering-ui.spec.ts that asserts the chip stays inside the cell, the label is truncated with an ellipsis, and the hidden indicator and its icon are not visible. grid-filtering-ui.spec.ts passes apart from the pre-existing locale-dependent date test ("Sep" vs "Sept"). Verified manually in the demo app on master at 80px, 150px, 235px to 300px column widths with one to three chips.

Test Configuration:

  • Angular version: 22.2
  • Browser(s): Chrome Headless 156
  • OS: macOS

Checklist:

  • All relevant labels have been applied to this PR
  • This PR includes unit tests covering all the new code (test guidelines)
  • This PR includes API docs for newly added methods/properties (api docs guidelines)
  • This PR includes feature/README.MD updates for the feature docs
  • This PR includes general feature table updates in the root README.MD
  • This PR includes CHANGELOG.MD updates for newly added functionality
  • This PR contains breaking changes
  • This PR includes ng update migrations for the breaking changes (migrations guidelines)
  • This PR includes behavioral changes and the feature specification has been updated with them
  • Accessibility (ARIA, keyboard navigation, focus management) has been verified

🤖 Generated with Claude Code

…ellipsis (22.2.x)

A lone filter chip now shrinks to the filter cell down to its min-content
width and truncates its label with an ellipsis instead of being clipped
by the column. The hidden "more filters" indicator keeps its width but
hides its icon, the connector keeps its text width, and the chips area
spans the cell again so the visible-chips measurement stays correct.

(cherry picked from commit e01818b)
(cherry picked from commit b631217)

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Copilot AI balanced review requested due to automatic review settings October 26, 2026 15:21

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

desig9stein and others added 5 commits October 26, 2026 17:27
…rable

Address the review: the hidden "more filters" indicator is absolutely
positioned and invisible, so a lone chip gets the whole cell while
updateVisibleFilters() still reads its icon width (the badge stays
absolute in the hidden state so it is not measured). Scope the lone-chip
rule to the built-in filter chips, drop the duplicated chip padding from
the label min-width, trim the comments, and list the tree and
hierarchical grids in the changelog.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
…b.com:IgniteUI/igniteui-angular into mpopov/fix-filtering-row-chip-ellipsis-22.2.x

# Conflicts:
#	CHANGELOG.md
…g-row-chip-ellipsis-22.2.x

# Conflicts:
#	CHANGELOG.md

This branch has not been deployed

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants