Skip to content

SearchInput - enable animation of expandable search input #11855

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
sg00dwin opened this issue May 29, 2025 · 0 comments
Open

SearchInput - enable animation of expandable search input #11855

sg00dwin opened this issue May 29, 2025 · 0 comments

Comments

@sg00dwin
Copy link
Collaborator

Core feature PR patternfly/patternfly#7451

Describe the feature
This feature will implement a transform animation to the opening and closing of the SearchInput component. In order for the animation to be performant, the search input field will transform the scaleX property.

Changes needed toSearchInput component
Several new classes are needed in order to incorporate and utilize those Core additions, along with additionally rendering the search input field, in the collapsed state, which will hidden and set to width: 0, by default.

A new pf-m-search-input class would be applied to the SearchInput parent node. <div class="pf-v6-c-input-group pf-m-search-input">

Currently, in it's closed state, the React component only has one InputGroupItem that generates the magnify glass button.

To transition the search input from a collapsed state of visibility: hidden and width: 0, an additional <InputGroupItem className="pf-m-search-text-input">{buildTextInputGroup()}</InputGroupItem> should be included. This new element would use a distinct pf-m-search-text-input class.

What is the expected behavior?

By default the search input will expand from left to right. For a search input to open from right to left, (right aligned), a modifier class pf-m-expand-left will need to be applied to the SearchInput component. Its corresponding css sets the translate-origin variable appropriately, and the scale transforms to the left when expanding.

search-input-expandable.mov
@github-project-automation github-project-automation bot moved this to Needs triage in PatternFly Issues May 29, 2025
@srambach srambach added this to the 2025.Q2 milestone May 30, 2025
@srambach srambach moved this from Needs triage to Ready to assign in PatternFly Issues May 30, 2025
@kmcfaul kmcfaul self-assigned this Jun 4, 2025
@kmcfaul kmcfaul moved this from Ready to assign to Not started in PatternFly Issues Jun 5, 2025
@kmcfaul kmcfaul moved this from Not started to In Progress in PatternFly Issues Jun 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: In Progress
Development

No branches or pull requests

3 participants