Skip to content

Commit

Permalink
Distinguish change forms in account settings (#2142)
Browse files Browse the repository at this point in the history
  • Loading branch information
annagav authored Mar 27, 2024
1 parent dd9efc8 commit a570ff9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion frontend/public/src/components/forms/ChangeEmailForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const ChangeEmailForm = ({ onSubmit, user }: Props) => {
render={({ isSubmitting }) => (
<Form>
<section className="email-section">
<h2>Change Email</h2>
<h2 aria-label="Change Email Form">Change Email</h2>
<div className="form-group">
<CardLabel htmlFor="email" isRequired={true} label="Email" />
<Field
Expand Down Expand Up @@ -69,6 +69,7 @@ const ChangeEmailForm = ({ onSubmit, user }: Props) => {
<div className="col d-flex justify-content-end">
<button
type="submit"
aria-label="sumbit form change email"
className="btn btn-primary btn-gradient-red-to-blue"
disabled={isSubmitting}
>
Expand Down
3 changes: 2 additions & 1 deletion frontend/public/src/components/forms/ChangePasswordForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const ChangePasswordForm = ({ onSubmit }: Props) => (
render={({ isSubmitting }) => (
<Form>
<section className="email-section">
<h2>Change Password</h2>
<h2 aria-label="Change Password Form">Change Password</h2>
<div className="form-group">
<CardLabel
htmlFor="oldPassword"
Expand Down Expand Up @@ -106,6 +106,7 @@ const ChangePasswordForm = ({ onSubmit }: Props) => (
<div className="col d-flex justify-content-end">
<button
type="submit"
aria-label="submit form change password"
className="btn btn-primary btn-gradient-red-to-blue"
disabled={isSubmitting}
>
Expand Down

0 comments on commit a570ff9

Please sign in to comment.