Skip to content

Commit

Permalink
Merge pull request #14 from camer0nluo/accessibility
Browse files Browse the repository at this point in the history
feature: support accessibility
  • Loading branch information
camer0nluo authored Dec 10, 2023
2 parents 4af14be + 39c5137 commit f41e743
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
7 changes: 6 additions & 1 deletion web/src/components/ShowHidePassword/ShowHidePassword.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,12 @@ const ShowHidePassword = ({ name }) => {
) : (
<TextField name={name} placeholder=" " required />
)}
<button className="absolute right-6 top-8" onClick={toggleShowPassword}>
<button
className="absolute right-6 top-8"
onClick={toggleShowPassword}
aria-label="toggle show hide for password"
alt="toggle show hide for password"
>
{isPasswordShowing ? (
<Icon id="eyeClosed" size={32} />
) : (
Expand Down
2 changes: 2 additions & 0 deletions web/src/pages/RSVPPage/RSVPPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,15 @@ const RSVPPage = ({ id }) => {
<RsvpButton
className="bg-orangeRed text-white"
icon="thumbsDown"
htmlFor="decline rsvp invite"
handleButton={handleDecline}
heading="Regretfully Decline"
></RsvpButton>
<RsvpButton
className="bg-spanishGreen text-white"
icon="thumbsUp"
handleButton={handleAccept}
htmlFor="accept rsvp invite"
heading="Yes, I'll be there"
></RsvpButton>
</div>
Expand Down
10 changes: 6 additions & 4 deletions web/src/pages/SignupPage/SignupPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,13 @@ const SignupPage = () => {
<Toaster />
<div className="container mx-auto">
<HeaderWithRulers heading="Sign Up" className="text-white" />
<Form onSubmit={onSubmit}>
<Input name="Name" />
<Input name="Email" />
<ShowHidePassword name="Password" />
<Form onSubmit={onSubmit} htmlFor="form">
<Input name="Name" htmlFor="name" />
<Input name="Email" htmlFor="email" />
<ShowHidePassword name="Password" htmlFor="password" />
<Submit
htmlFor="submit"
alt="submit button"
className="
w-full
rounded-full bg-supernova py-5 font-handwriting text-3xl uppercase text-black"
Expand Down

0 comments on commit f41e743

Please sign in to comment.