-
Notifications
You must be signed in to change notification settings - Fork 10.5k
fix: align email focus ring with password/username #23885
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
base: main
Are you sure you want to change the base?
fix: align email focus ring with password/username #23885
Conversation
@KartikLabhshetwar is attempting to deploy a commit to the cal Team on Vercel. A member of the Team first needs to authorize it. |
WalkthroughUpdates are confined to packages/ui/components/form/inputs/TextField.tsx. The Addon component’s destructured props are renamed (size → _size with default "md"; position → _position with default "start"), with no changes to usage. In the InputField path, when the input type is "email", the Input element conditionally adds focus styles: focus:border-subtle focus:ring-brand-default focus:ring-2. No exports or public API signatures change beyond the internal parameter renaming in the Addon function. ✨ Finishing touches
🧪 Generate unit tests
Tip 👮 Agentic pre-merge checks are now available in preview!Pro plan users can now enable pre-merge checks in their settings to enforce checklists before merging PRs.
Please see the documentation for more information. Example: reviews:
pre_merge_checks:
custom_checks:
- name: "Undocumented Breaking Changes"
mode: "warning"
instructions: |
Pass/fail criteria: All breaking changes to public APIs, CLI flags, environment variables, configuration keys, database schemas, or HTTP/GraphQL endpoints must be documented in the "Breaking Change" section of the PR description and in CHANGELOG.md. Exclude purely internal or private changes (e.g., code not exported from package entry points or explicitly marked as internal). Please share your feedback with us on this Discord post. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment Pre-merge checks✅ Passed checks (5 passed)
|
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
🧹 Nitpick comments (1)
packages/ui/components/form/inputs/TextField.tsx (1)
77-84
: Drop unused Addon props (size/position) or wire them up.You renamed to
_size
/_position
but never use them. Prefer removing them from the destructure (and ideally from the type + call sites) to avoid dead props and future confusion.Apply this minimal diff here:
-const Addon = ({ - children, - className, - error, - onClickAddon, - size: _size = "md", - position: _position = "start", -}: AddonProps) => ( +const Addon = ({ children, className, error, onClickAddon }: AddonProps) => (Additionally (outside this hunk), consider:
- Removing
size
andposition
fromAddonProps
- Dropping
size
/position
props at uses (Line 162 and Lines 191–195)
📜 Review details
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Disabled knowledge base sources:
- Linear integration is disabled by default for public repositories
You can enable these sources in your CodeRabbit configuration.
📒 Files selected for processing (1)
packages/ui/components/form/inputs/TextField.tsx
(2 hunks)
🧰 Additional context used
📓 Path-based instructions (3)
**/*.tsx
📄 CodeRabbit inference engine (.cursor/rules/review.mdc)
Always use
t()
for text localization in frontend code; direct text embedding should trigger a warning
Files:
packages/ui/components/form/inputs/TextField.tsx
**/*.{ts,tsx}
📄 CodeRabbit inference engine (.cursor/rules/review.mdc)
Flag excessive Day.js use in performance-critical code; prefer native Date or Day.js
.utc()
in hot paths like loops
Files:
packages/ui/components/form/inputs/TextField.tsx
**/*.{ts,tsx,js,jsx}
⚙️ CodeRabbit configuration file
Flag default exports and encourage named exports. Named exports provide better tree-shaking, easier refactoring, and clearer imports. Exempt main components like pages, layouts, and components that serve as the primary export of a module.
Files:
packages/ui/components/form/inputs/TextField.tsx
⏰ Context from checks skipped due to timeout of 180000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
- GitHub Check: Install dependencies / Yarn install & cache
🔇 Additional comments (1)
packages/ui/components/form/inputs/TextField.tsx (1)
216-220
: Email focus ring aligned with Password/Username — LGTM.The conditional adds the thicker brand ring on focus for
type="email"
and matches the add-on path’sring-2 ring-brand-default
.Please sanity-check:
- Light/dark themes and disabled/readOnly states on login/signup.
- No visual clash with
focus:shadow-outline-gray-focused
(ring should take precedence).
hi @anikdhabal, @supalarry please take a look at this pr. |
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.
LGTM
hi @supalarry, @anikdhabal is there any issue here? |
hi @supalarry, @anikdhabal, @CarinaWolli is there any issue in this pr? |
What does this PR do?
Visual Demo (For contributors especially)
A visual demonstration is strongly recommended, for both the original and new change (video / image - any one).
before:
Screen.Recording.2025-09-17.at.2.10.34.PM.mov
after:
Screen.Recording.2025-09-17.at.2.10.34.PM.mov
Video Demo (if applicable):
Image Demo (if applicable):
before:
after:


Mandatory Tasks (DO NOT REMOVE)
How should this be tested?
Checklist