Skip to content

fix(input): autofill bg overlap on focus border (#DS-4950)#1518

Merged
NikGurev merged 4 commits into
mainfrom
bugfix/DS-4950
Apr 28, 2026
Merged

fix(input): autofill bg overlap on focus border (#DS-4950)#1518
NikGurev merged 4 commits into
mainfrom
bugfix/DS-4950

Conversation

@NikGurev

@NikGurev NikGurev commented Apr 24, 2026

Copy link
Copy Markdown
Contributor

Summary

The fix contains 2 changes

  • Input height
  • The color is autofilled

For the focused + autofilled state:
Before
padding 5px; margin: 0px;

After
padding 4px 0; margin: 1px 0

This way, the height remains the same, but the background of the input does not go beyond the boundaries.

No way to test since issue for autofill in playwrigh exist: microsoft/playwright#26831

Press for description in ru-RU

Фикс включает 2 изменения

  • Высота инпута
  • Цвет autofilled

Для состояния focused + autofilled:
Было
padding 5px; margin: 0px;

Стало
padding 4px 0; margin: 1px 0

Таким образом, высота остается той же, но задний фон инпута не выходит за границы

@NikGurev NikGurev self-assigned this Apr 24, 2026
@github-actions

github-actions Bot commented Apr 24, 2026

Copy link
Copy Markdown

Visit the preview URL for this PR (updated for commit 03675db):

https://koobiq-next--prs-1518-ivbae58h.web.app

(expires Sun, 03 May 2026 08:58:59 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: c9e37e518febda70d0317d07e8ceb35ac43c534c

@NikGurev NikGurev marked this pull request as ready for review April 27, 2026 12:05
@NikGurev NikGurev requested a review from lskramarov as a code owner April 27, 2026 12:05
@NikGurev NikGurev requested review from artembelik and rmnturov April 27, 2026 12:05

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.

Pull request overview

This PR addresses a visual issue where the input background (notably in :-webkit-autofill state) overlaps the focused border/outline in kbq-form-field, aiming to keep the overall control height unchanged while preventing background bleed.

Changes:

  • Adds a new sizing token for focus outline width (--kbq-form-field-size-focus-outline-width).
  • Adjusts focus outline box-shadow to use the new token.
  • Tweaks input sizing and autofill+focused paddings/margins and attempts to suppress browser autofill background.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.

File Description
packages/components/form-field/form-field.scss Adjusts .kbq-input min-height and adds special styling for focused + :-webkit-autofill to avoid background overlap.
packages/components/form-field/form-field-tokens.scss Introduces a new CSS variable token for focus outline width.
packages/components/form-field/_form-field-theme.scss Updates autofill styling (transparent background + long transition hack) and makes focus box-shadow width token-driven.

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

Comment thread packages/components/form-field/form-field.scss Outdated
Comment thread packages/components/form-field/form-field.scss Outdated
Comment thread packages/components/form-field/form-field-tokens.scss
Comment thread packages/components/form-field/_form-field-theme.scss
@NikGurev NikGurev changed the title fix: remove input bg overlap on focus border (#DS-4950) fix(input): autofill bg overlap on focus border (#DS-4950) Apr 28, 2026
@NikGurev NikGurev merged commit ed90e11 into main Apr 28, 2026
8 checks passed
@NikGurev NikGurev deleted the bugfix/DS-4950 branch April 28, 2026 10:30
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.

5 participants