Skip to content

refactor(search-bar): use icon size to calculate space#1749

Merged
spike-rabbit merged 1 commit intomainfrom
refactor/search-bar-use-icons-size-for-gap
Mar 25, 2026
Merged

refactor(search-bar): use icon size to calculate space#1749
spike-rabbit merged 1 commit intomainfrom
refactor/search-bar-use-icons-size-for-gap

Conversation

@spike-rabbit
Copy link
Member

@spike-rabbit spike-rabbit commented Mar 25, 2026

@spike-rabbit spike-rabbit requested review from a team as code owners March 25, 2026 15:55
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

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 renames a CSS class from ps-9 to icon-start in the search bar component's HTML and defines the new icon-start class in the SCSS. The new class calculates padding-inline-start using Sass map functions. A review comment highlighted a potential issue where map.get(variables.$spacers, 4) could return null if the key is not found, leading to invalid CSS, and suggested adding a compile-time check for robustness.

Copy link
Member

@timowolf timowolf left a comment

Choose a reason for hiding this comment

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

LGTM

@timowolf timowolf added this to the 49.x milestone Mar 25, 2026
@timowolf timowolf added the bug Something isn't working label Mar 25, 2026
@spike-rabbit spike-rabbit force-pushed the refactor/search-bar-use-icons-size-for-gap branch 3 times, most recently from 4b9d0ed to 4777948 Compare March 25, 2026 16:44
@timowolf timowolf force-pushed the refactor/search-bar-use-icons-size-for-gap branch from 4777948 to 8b2c692 Compare March 25, 2026 17:24
Copy link
Member

@timowolf timowolf left a comment

Choose a reason for hiding this comment

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

LGTM, many thanks

@spike-rabbit spike-rabbit added this pull request to the merge queue Mar 25, 2026
Merged via the queue into main with commit 6c1c6d1 Mar 25, 2026
11 checks passed
@spike-rabbit spike-rabbit deleted the refactor/search-bar-use-icons-size-for-gap branch March 25, 2026 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants