-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
fix: improve input browser backfilling style #4519
Conversation
|
WalkthroughThe pull request modifies the Changes
Assessment against linked issues
Possibly related PRs
Suggested reviewers
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Outside diff range and nitpick comments (1)
packages/@core/base/design/src/css/global.css (1)
85-89
: Approved: Commenting out custom autofill styles addresses the issue.This change effectively removes the custom styling for autofilled inputs, which should resolve the issue of abnormal display in Chrome's memory mode. By allowing the browser's default autofill styling, the input fields should now retain their borders and overall design when autofilled.
Consider the following improvements:
- Instead of completely removing the styles, you might want to adjust them to match your design while still allowing the autofill to be visible. For example:
input:-webkit-autofill { -webkit-text-fill-color: inherit; -webkit-box-shadow: 0 0 0px 1000px transparent inset; transition: background-color 5000s ease-in-out 0s; }
- To ensure consistency across different browsers, you may want to add similar rules for other vendor prefixes:
input:-webkit-autofill, input:-moz-autofill, input:-ms-autofill { /* Your styles here */ }
- Consider adding specific styles for the autofill background and text color to match your design system:
input:-webkit-autofill { -webkit-text-fill-color: theme('colors.input.text'); -webkit-box-shadow: 0 0 0px 1000px theme('colors.input.background') inset; }These suggestions can help maintain a consistent look while still addressing the original issue.
Description
fixed #4492
Type of change
Please delete options that are not relevant.
pnpm-lock.yaml
unless you introduce a new test example.Checklist
pnpm run docs:dev
command.pnpm test
.feat:
,fix:
,perf:
,docs:
, orchore:
.Summary by CodeRabbit