From 1d8e3a4513b8956778529bceaa38377337b0b200 Mon Sep 17 00:00:00 2001 From: SleeplessOne1917 Date: Fri, 7 Jul 2023 14:23:21 -0400 Subject: [PATCH] Make show/hide password button use icon --- src/assets/symbols.svg | 7 +++++++ src/shared/components/common/password-input.tsx | 5 ++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/assets/symbols.svg b/src/assets/symbols.svg index 72214eaf..6e9c6ef9 100644 --- a/src/assets/symbols.svg +++ b/src/assets/symbols.svg @@ -258,5 +258,12 @@ + + + + + + + diff --git a/src/shared/components/common/password-input.tsx b/src/shared/components/common/password-input.tsx index d96f2ff8..0a5ea85f 100644 --- a/src/shared/components/common/password-input.tsx +++ b/src/shared/components/common/password-input.tsx @@ -4,6 +4,7 @@ import { NoOptionI18nKeys } from "i18next"; import { Component, FormEventHandler, linkEvent } from "inferno"; import { NavLink } from "inferno-router"; import { I18NextService } from "../../services"; +import { Icon } from "./icon"; interface PasswordInputProps { id: string; @@ -115,8 +116,10 @@ class PasswordInput extends Component { type="button" id={id} onClick={linkEvent(this, handleToggleShow)} + aria-label={show ? "Hide Password" : "Show Password"} + data-tippy-content={show ? "Hide Password" : "Show Password"} > - Button + {showForgotLink && (