Fix autofill background mismatch in InputGroup and standalone Input#534
Open
pedromenezes1 wants to merge 4 commits into
Open
Fix autofill background mismatch in InputGroup and standalone Input#534pedromenezes1 wants to merge 4 commits into
pedromenezes1 wants to merge 4 commits into
Conversation
commit: |
Contributor
Docs PreviewCommit: |
Contributor
Collaborator
Author
Collaborator
Author
|
/bonk |
Contributor
PR #534 Summary: Fix Autofill Background Mismatch in InputGroupOverviewThis PR fixes visual inconsistencies when browser autofill is active on inputs, where Chrome's forced blue background only applied to the input element but not surrounding icons, suffixes, or buttons in InputGroup containers. Changes Made1.
2.
Key Technical Details
Verification Evidence
Approvals
The implementation follows the standard browser autofill override pattern used across design systems and properly integrates with the Kumo theme token system. |
geoquant
approved these changes
May 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
































































When browser autofill kicks in, Chrome applies a forced background color only to the
<input>element, but not the surroundingInputGroupcontainer or addons. This creates a visual mismatch where the input is blue-tinted but icons, suffixes, and buttons remain white.Approach
box-shadow: insettrick to override Chrome's forced autofill background on all inputs/textareas with a consistentkumo-info-tintat 20% mixed withkumo-controlInputGroupcontainer and hybrid zone via:has(input:-webkit-autofill)ringon standalone inputs by compositing the inset fill alongside all--tw-*-shadowvariablesInputGroup(container handles it) while keeping it on standalone inputsbackground-colorviatransition: background-color 5000sso the box-shadow tint is visible**Chrome's stylesheet forces an autofill
background-colorthat renders on top ofbox-shadow: insetand cannot be overridden by our styles. Thetransition: background-color 5000sdelays it from ever visually taking effect, which is the standard workaround used across design systems.Preview
https://62cda41f-kumo-docs.design-engineering.workers.dev/components/input-group/#icon
https://62cda41f-kumo-docs.design-engineering.workers.dev/components/input-group/#button
https://62cda41f-kumo-docs.design-engineering.workers.dev/components/input
Before
After