From 293a733806bfbd470ce2645db658316cda167da2 Mon Sep 17 00:00:00 2001 From: William Grant Date: Mon, 27 May 2024 10:16:10 +1000 Subject: [PATCH] feat: account creation flow done updated some testids and aria labels, SessionInput now has aria label support --- ts/components/EmptyMessageView.tsx | 4 +++- ts/components/inputs/SessionInput.tsx | 12 ++++++++++-- ts/components/leftpane/LeftPaneSectionHeader.tsx | 1 + ts/components/registration/RegistrationStages.tsx | 4 ++-- ts/components/registration/stages/CreateAccount.tsx | 2 ++ ts/components/registration/stages/Start.tsx | 2 ++ 6 files changed, 20 insertions(+), 5 deletions(-) diff --git a/ts/components/EmptyMessageView.tsx b/ts/components/EmptyMessageView.tsx index bb71d02ca..64d1599d2 100644 --- a/ts/components/EmptyMessageView.tsx +++ b/ts/components/EmptyMessageView.tsx @@ -110,7 +110,9 @@ export const EmptyMessageView = () => { {!conversationCount ? ( <> - {window.i18n('conversationsNone')} + + {window.i18n('conversationsNone')} + {window.i18n('onboardingHitThePlusButton')} diff --git a/ts/components/inputs/SessionInput.tsx b/ts/components/inputs/SessionInput.tsx index b18a6c902..adffd829f 100644 --- a/ts/components/inputs/SessionInput.tsx +++ b/ts/components/inputs/SessionInput.tsx @@ -147,6 +147,7 @@ const StyledTextAreaContainer = styled(motion.div)<{ const ErrorItem = (props: { id: string; error: string }) => { return ( ); @@ -207,6 +209,7 @@ type Props = { type?: string; value?: string; placeholder?: string; + ariaLabel?: string; maxLength?: number; enableShowHide?: boolean; onValueChanged?: (value: string) => any; @@ -232,6 +235,7 @@ export const SessionInput = (props: Props) => { placeholder, type = 'text', value, + ariaLabel, maxLength, enableShowHide, error, @@ -346,10 +350,14 @@ export const SessionInput = (props: Props) => { > {isTextArea ? ( -