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#3241 - Icon Alignment issue in Password Field #3263

Merged
merged 5 commits into from
Nov 26, 2024

Conversation

PratyushSawan
Copy link
Contributor

Fixes #3241

Changes:

Previously, a top margin of 4px was added to the eye icon, which aligned it centrally on some screens but wasn’t consistent for all users. I added a few lines of adjustments to ensure consistency across all screen aspect ratios.

I have verified that this pull request:

  • has no linting errors (npm run lint)
  • has no test errors (npm run test)
  • is from a uniquely-named feature branch and is up to date with the develop branch.
  • is descriptively named and links to an issue number, i.e. Fixes #123

Changes OUTPUTS:
OUTPUT 1:
image

OUTPUT 2:
image

@PratyushSawan
Copy link
Contributor Author

@raclim i creating this new PR, because in the last PR #3262 I missed and create a PR directly from the develop branch.

Waiting for your review.

Thank you

@raclim
Copy link
Collaborator

raclim commented Nov 13, 2024

Thanks so much for working on this! I think this works!

Maybe one issue is that the focus indicators are still slightly misaligned within the input, which I think was mentioned in the associated issue. I'm not sure how much of a major concern this might be though.
Screenshot 2024-11-13 at 1 06 39 PM

One other alternative solution I had in mind was transforming the Y axis for the svg:

.form__eye__icon {
  font-size: #{math.div(30, $base-font-size)}rem;
  position: absolute;
  right: 0px;
  
  & svg {
    transform: translateY(10%);
  }
}
Screenshot 2024-11-13 at 1 02 11 PM

Open to suggestions or ideas on what you might prefer!

@PratyushSawan
Copy link
Contributor Author

Hi @raclim Thanks for the feedback. Added those changes and here the output.

image

Thank you

Copy link
Collaborator

@raclim raclim left a comment

Choose a reason for hiding this comment

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

Awesome! I think this overall looks good to me! I'm going to merge this in, but please feel free to follow up with any additional changes!

@raclim raclim merged commit 691e6a9 into processing:develop Nov 26, 2024
1 check passed
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.

Icon Alignment Issue in Password Field – Adjust Eye Icon Vertical Centering
2 participants