Skip to content

Commit

Permalink
replaced Button component with simple button
Browse files Browse the repository at this point in the history
  • Loading branch information
werdnanoslen committed Oct 5, 2023
1 parent 6f9c326 commit d9d21af
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/components/forms/Form/Form.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -289,16 +289,15 @@ export const passwordResetForm = (): React.ReactElement => {
name="confirmPassword"
type={showPassword ? 'text' : 'password'}
/>
<Button
<button
type="button"
unstyled
className="usa-show-password"
aria-controls="newPassword confirmPassword"
onClick={(): void =>
setShowPassword((showPassword) => !showPassword)
}>
{showPassword ? 'Hide my typing' : 'Show my typing'}
</Button>
</button>

<Button type="submit">Reset password</Button>
</Fieldset>
Expand Down

0 comments on commit d9d21af

Please sign in to comment.