Skip to content
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] remove blue outline for Phones, Emails, and Domains fields #8268

Merged
merged 5 commits into from
Nov 4, 2024

Conversation

Hitarthsheth07
Copy link
Contributor

FIX: #8252

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

PR Summary

This PR removes the blue outline and border color change on focus for input fields in the DropdownMenuInput component, addressing visual consistency issues with other fields.

  • Commented out focus styles in packages/twenty-front/src/modules/ui/layout/dropdown/components/DropdownMenuInput.tsx that previously added blue box-shadow and border color
  • Simplified padding for error message div in DropdownMenuInput component
  • Changes affect Phones, Emails, and Domains fields to match desired simple input appearance
  • Maintains error state styling with red border when hasError prop is true

1 file(s) reviewed, 1 comment(s)
Edit PR Review Bot Settings | Greptile

Comment on lines 25 to 31
/* &:focus {
${({ theme, hasError = false }) => {
if (hasError) return '';
return `box-shadow: 0px 0px 0px 3px ${RGBA(theme.color.blue, 0.1)};
border-color: ${theme.color.blue};`;
}};
}
} */
Copy link
Contributor

Choose a reason for hiding this comment

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

style: Consider using a CSS reset or outline: none instead of commenting out the focus styles to maintain accessibility. Focus states are important for keyboard navigation.

@@ -53,8 +53,7 @@ const StyledRightContainer = styled.div`

const StyledErrorDiv = styled.div`
color: ${({ theme }) => theme.color.red};
padding: 0 ${({ theme }) => theme.spacing(2)}
${({ theme }) => theme.spacing(1)};
padding: 0 ${({ theme }) => theme.spacing(2)};
Copy link
Member

Choose a reason for hiding this comment

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

Since the original issue doesn't mention padding, could you please add a comment to explain the issue you've found/are fixing here? Thanks!

Copy link
Member

Choose a reason for hiding this comment

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

Why did you resolve @Hitarthsheth07? Thanks

@@ -22,13 +22,13 @@ const StyledInput = styled.input<{
position: relative;
width: 100%;

&:focus {
/* &:focus {
Copy link
Member

Choose a reason for hiding this comment

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

Don't be afraid to delete code, that's what git is for - we can always find it if we need it! So don't leave commented code in the codebase :)

@FelixMalfait FelixMalfait merged commit b66bdd9 into twentyhq:main Nov 4, 2024
11 checks passed
@Hitarthsheth07 Hitarthsheth07 deleted the use-simple-field-inputs branch November 4, 2024 22:13
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.

Use simple input for Phones, Emails, and Domains fields
2 participants