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

[BB-8929] fix: remove redundant form-control class for MasqueradeUserNameInput #24

Conversation

tecoholic
Copy link
Member

@tecoholic tecoholic commented Jul 10, 2024

As the FormControl element already comes with the form-control class, the extra class specified on the MasqueradeUserInput is applied to the div container of the causing double input box effect. This is not visible in themes where the container div's padding is zero. But appears when padding is not set.

Internal-ref: https://tasks.opencraft.com/browse/BB-8929

Note about upstreaming the changes

An upstream PR for this is not required may not be necessary, as upstream has

  1. switched from edx/paragon to openedx/paragon
  2. the MasqueradeUserNameInput.jsx now uses the Input component instead of the FormControl component which doesn't render an extra div around the element.

Yet, I have created a PR with the same changes at: openedx#1416

UI Changes

Before

image

After

image

As the FormControl element already comes with the form-control
class, the extra class specified on the MasqueradeUserInput is
applied to the div container of the <input> causing double input
box effect. This is not visible in themes where the container
div's padding is zero. But appears when padding is not set.

Internal-ref: https://tasks.opencraft.com/browse/BB-8929
@tecoholic tecoholic changed the title fix: remove redundant form-control class for MasqueradeUserInput [BB-8929] fix: remove redundant form-control class for MasqueradeUserNameInput Jul 10, 2024
@tecoholic tecoholic self-assigned this Jul 10, 2024
@tecoholic tecoholic requested a review from viadanna July 10, 2024 12:05
@tecoholic
Copy link
Member Author

@viadanna The CI seems to be failing on an unrelated file to this PR. I noticed it failing while committing as well. Kindly let me know if I should handle the error as well.

Copy link
Member

@viadanna viadanna left a comment

Choose a reason for hiding this comment

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

Approved 👍

  • I tested this on the dev server.
  • I read through the code.

@tecoholic tecoholic merged commit b312952 into asu-moe/progress-tab-fork Jul 24, 2024
2 of 3 checks passed
@tecoholic tecoholic deleted the tecoholic/BB-8929-fix-masquerade-user-input-styles branch July 24, 2024 04:24
@0x29a 0x29a restored the tecoholic/BB-8929-fix-masquerade-user-input-styles branch August 2, 2024 10:55
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.

2 participants