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

Indicate valid and invalid fields in signup form #1450

Merged
merged 4 commits into from
Jun 26, 2023

Conversation

dullbananas
Copy link
Contributor

Fixes #1196

@@ -144,7 +144,7 @@ export class Signup extends Component<any, State> {
registerForm() {
const siteView = this.state.siteRes.site_view;
return (
<form onSubmit={linkEvent(this, this.handleRegisterSubmit)}>
<form class="was-validated" onSubmit={linkEvent(this, this.handleRegisterSubmit)}>
Copy link
Contributor

Choose a reason for hiding this comment

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

Huh?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It causes fields to show a check mark or an red exclamation mark to indicate whether or not the value is valid

https://getbootstrap.com/docs/5.0/forms/validation/

Copy link
Member

@dessalines dessalines left a comment

Choose a reason for hiding this comment

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

You didn't correctly set up husky, so you need to run prettier manually on your added files to pass lint.

auto-merge was automatically disabled June 26, 2023 19:28

Head branch was pushed to by a user without write access

@dullbananas dullbananas requested a review from jsit as a code owner June 26, 2023 19:28
@dessalines dessalines merged commit 6810742 into LemmyNet:main Jun 26, 2023
1 check passed
jsit added a commit to jsit/lemmy-ui that referenced this pull request Jun 26, 2023
* lemmy/main:
  fix vote button alignment
  Fix feedback on banning an unbanning
  remove icon (LemmyNet#1618)
  Indicate valid and invalid fields in signup form (LemmyNet#1450)
  capitalize button (LemmyNet#1616)
  Move password reset form to separate route, view (LemmyNet#1390)
  feat(UI): Reduce base font size (LemmyNet#1591)
  Fix: missing semantic css classes and html elements (LemmyNet#1583)
jsit pushed a commit to jsit/lemmy-ui that referenced this pull request Jun 26, 2023
* Use was-validated class in signup form

* Update signup.tsx

* Update signup.tsx

---------

Co-authored-by: SleeplessOne1917 <abias1122@gmail.com>
jsit pushed a commit to jsit/lemmy-ui that referenced this pull request Jun 27, 2023
* Use was-validated class in signup form

* Update signup.tsx

* Update signup.tsx

---------

Co-authored-by: SleeplessOne1917 <abias1122@gmail.com>
jsit added a commit to jsit/lemmy-ui that referenced this pull request Jun 27, 2023
* lemmy/main:
  fix vote button alignment
  partially revert change
  Fix feedback on banning an unbanning
  remove icon (LemmyNet#1618)
  Indicate valid and invalid fields in signup form (LemmyNet#1450)
  capitalize button (LemmyNet#1616)
  Move password reset form to separate route, view (LemmyNet#1390)
  feat(UI): Reduce base font size (LemmyNet#1591)
  Fix: missing semantic css classes and html elements (LemmyNet#1583)
  remove hook entirely
  chore(DX): Add prettier to eslint config for use with editors
  fix bug collapsing previews when voting
  fix: Remove unnecessary string interpolations
  fix: Remove unnecessary class
  fix: Remove unnecessary classes
  fix: Restore removed classes
  fix: Remove wrapping li's
  fix: Remove extraneous classes
  fix: Move things back to where they were
  chore: Separate post mod buttons into functions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants