Skip to content

💄 Align search and clear icon in Filter search field to vertical center#1185

Merged
mariush2 merged 1 commit into
mainfrom
fix/filter-icon-alignment
Nov 27, 2025
Merged

💄 Align search and clear icon in Filter search field to vertical center#1185
mariush2 merged 1 commit into
mainfrom
fix/filter-icon-alignment

Conversation

@mariush2
Copy link
Copy Markdown
Contributor

@mariush2 mariush2 commented Nov 24, 2025

Azure DevOps links

User story


  • Needs to be tested locally by reviewer

Description

Aligning search and clear button to vertical center in the Filter component's search field

Copilot AI review requested due to automatic review settings November 24, 2025 12:57
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR refactors the Filter component's layout structure to properly align the search icon and clear button to the vertical center of the search field, regardless of content wrapping.

  • Introduced a new SearchAndValuesWrapper component to isolate wrapping behavior
  • Moved flex-wrap: wrap from Section to SearchAndValuesWrapper to prevent icons from participating in wrapping
  • Maintained all existing functionality while fixing the vertical alignment issue

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/organisms/Filter/Filter.tsx Added SearchAndValuesWrapper to wrap chips and search field, isolating wrapping behavior from parent Section
src/organisms/Filter/Filter.styles.ts Created SearchAndValuesWrapper styled component with flex-wrap property moved from Section to properly separate wrapping and non-wrapping layout concerns

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@github-actions
Copy link
Copy Markdown

Coverage Report

Status Category Percentage Covered / Total
🔴 Lines 99.62% (🎯 100%) 16244 / 16305
🔴 Statements 99.62% (🎯 100%) 16244 / 16305
🔴 Functions 99.65% (🎯 100%) 1165 / 1169
🔴 Branches 99.67% (🎯 100%) 4002 / 4015
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
src/organisms/Filter/Filter.styles.ts 100% 100% 100% 100%
src/organisms/Filter/Filter.tsx 100% 100% 100% 100%
Generated in workflow #1947 for commit f40bcad by the Vitest Coverage Report Action

@mariush2 mariush2 marked this pull request as ready for review November 24, 2025 13:05
@mariush2 mariush2 requested a review from a team as a code owner November 24, 2025 13:05
Copy link
Copy Markdown
Contributor

@aslakihle aslakihle left a comment

Choose a reason for hiding this comment

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

😎

@mariush2 mariush2 merged commit 3aba859 into main Nov 27, 2025
16 of 17 checks passed
@mariush2 mariush2 deleted the fix/filter-icon-alignment branch November 27, 2025 06:29
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.

3 participants