Skip to content

fix(filtered-search): prevent free-text input from collapsing with multiple criteria#2118

Open
spliffone wants to merge 2 commits into
mainfrom
fix/filtered-search-grow-criteria-input
Open

fix(filtered-search): prevent free-text input from collapsing with multiple criteria#2118
spliffone wants to merge 2 commits into
mainfrom
fix/filtered-search-grow-criteria-input

Conversation

@spliffone

@spliffone spliffone commented May 31, 2026

Copy link
Copy Markdown
Member

Set min-inline-size: 20ch to ensure the free-text input maintains a minimum
width when multiple filter criteria are configured, improving usability and
visual stability.


Documentation.
Examples.
Dashboards Demo.
Playwright report.

Coverage Reports:

Code Coverage

@spliffone spliffone requested review from a team as code owners May 31, 2026 06:19

@gemini-code-assist gemini-code-assist Bot 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.

Code Review

This pull request introduces dynamic input sizing for the free-text and typeahead filtered search components by binding the size attribute to a new computed property, valueInputSize, in the base class. However, the current implementation of valueInputSize uses a type assertion (value as string) that bypasses TypeScript's type safety. This will cause incorrect size calculations when multiSelect is enabled and the value is an array of strings. To resolve this, the computed property should explicitly handle array values by joining them before determining the length.

Comment thread projects/element-ng/filtered-search/values/si-filtered-search-value.base.ts Outdated
@spliffone spliffone force-pushed the fix/filtered-search-grow-criteria-input branch from 69a67ef to f5009df Compare May 31, 2026 10:40
@spliffone spliffone marked this pull request as draft May 31, 2026 12:25
…ltiple criteria

Set min-inline-size: 20ch to ensure the free-text input maintains a minimum
width when multiple filter criteria are configured, improving usability and
visual stability.
@spliffone spliffone force-pushed the fix/filtered-search-grow-criteria-input branch from a6e5936 to cdb2515 Compare June 9, 2026 18:45
@spliffone spliffone changed the title fix(filtered-search): size active criterion input to its content fix(filtered-search): prevent free-text input from collapsing with multiple criteria Jun 9, 2026
@spliffone

Copy link
Copy Markdown
Member Author

/gemini review

@gemini-code-assist gemini-code-assist Bot 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.

Code Review

This pull request modifies the SCSS of the filtered search input component to set a minimum inline size of 20ch on the input element. There are no review comments, and I have no feedback to provide.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

@spliffone spliffone marked this pull request as ready for review June 9, 2026 18:52
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