From d7ae9fc9d1b190441be8f795996a12bf968bb7b5 Mon Sep 17 00:00:00 2001 From: Nathan Panchout Date: Fri, 22 Aug 2025 10:13:40 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8(react)=20enhance=20Input=20compone?= =?UTF-8?q?nt=20styles?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit update Input token and css files with new css variables introduce with the new tokens architectures --- .../components/Forms/Input/InputPassword.tsx | 34 +++++------ .../src/components/Forms/Input/_index.scss | 59 ++++++++++++------- .../src/components/Forms/Input/index.spec.tsx | 1 + .../components/Forms/Input/index.stories.tsx | 4 +- .../src/components/Forms/Input/tokens.ts | 26 ++++---- 5 files changed, 71 insertions(+), 53 deletions(-) diff --git a/packages/react/src/components/Forms/Input/InputPassword.tsx b/packages/react/src/components/Forms/Input/InputPassword.tsx index d4608c8..3ce110f 100644 --- a/packages/react/src/components/Forms/Input/InputPassword.tsx +++ b/packages/react/src/components/Forms/Input/InputPassword.tsx @@ -8,29 +8,27 @@ export const InputPassword = (props: Omit) => { const { className, ...otherProps } = props; const customClassName = "c__input--password"; const { t } = useCunningham(); + return ( setShowPassword(false)} - icon={visibility_off} - color="tertiary-text" - size="small" - aria-label={t("components.forms.input.password.hide_password")} - /> - ) : ( -