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(login): only show error state on login box if user interacted #50798

Merged
merged 2 commits into from
Feb 17, 2025

Conversation

susnux
Copy link
Contributor

@susnux susnux commented Feb 13, 2025

Summary

The input fields should only marked as invalid visually if the user interacted with them (e.g. entered something or tried to submit them empty).

Screenshots

before after
Screenshot 2025-02-13 at 17-06-42 Anmelden – Nextcloud Screenshot 2025-02-13 at 17-06-31 Anmelden – Nextcloud

Checklist

@susnux susnux added bug design Design, UI, UX, etc. 3. to review Waiting for reviews feature: authentication labels Feb 13, 2025
@susnux susnux added this to the Nextcloud 32 milestone Feb 13, 2025
@susnux susnux requested review from szaimen, a team, skjnldsv, sorbaugh and Pytal and removed request for a team February 13, 2025 16:08
@susnux
Copy link
Contributor Author

susnux commented Feb 13, 2025

/backport to stable31

@susnux
Copy link
Contributor Author

susnux commented Feb 13, 2025

/backport to stable30

@susnux
Copy link
Contributor Author

susnux commented Feb 13, 2025

/backport to stable29

Copy link
Member

@Pytal Pytal left a comment

Choose a reason for hiding this comment

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

Would it make sense to upstream this in NcInputField or make it a prop?

Copy link
Contributor

@szaimen szaimen left a comment

Choose a reason for hiding this comment

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

LGTM from the screebshot. Thanks for fixing this! :)

@susnux susnux force-pushed the fix/login-error-state branch from 732f894 to 61d9100 Compare February 17, 2025 09:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews bug design Design, UI, UX, etc. feature: authentication
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Input fields displayed „invalid“ (red border) without form submission
4 participants