diff --git a/src/components/Buttons/LinkButton/LinkButton.tsx b/src/components/Buttons/LinkButton/LinkButton.tsx index 943515fa..ecca674d 100644 --- a/src/components/Buttons/LinkButton/LinkButton.tsx +++ b/src/components/Buttons/LinkButton/LinkButton.tsx @@ -13,7 +13,6 @@ const LinkButton = ({ urlValue, translationId, isActive }: LinkButtonProps) => { role="button" type="button" disabled={!isActive} - aria-disabled={!isActive} className="button-primary p-2" aria-label={intl.formatMessage({ id: translationId })} > diff --git a/src/components/Buttons/LinkButton/__tests__/LinkButton.test.tsx b/src/components/Buttons/LinkButton/__tests__/LinkButton.test.tsx index 65deef3d..88a051db 100644 --- a/src/components/Buttons/LinkButton/__tests__/LinkButton.test.tsx +++ b/src/components/Buttons/LinkButton/__tests__/LinkButton.test.tsx @@ -55,6 +55,5 @@ describe('', () => { expect(button[0].getAttribute('aria-label')).toContain( finnishTranslations['app.buttons.link.summary'], ); - expect(button[0].getAttribute('aria-disabled')).toEqual('false'); }); }); diff --git a/src/components/Forms/EmailForm/EmailForm.tsx b/src/components/Forms/EmailForm/EmailForm.tsx index 9fc5c10f..a93fd493 100644 --- a/src/components/Forms/EmailForm/EmailForm.tsx +++ b/src/components/Forms/EmailForm/EmailForm.tsx @@ -80,13 +80,7 @@ const EmailForm = () => { )}
- {hasUserAnswered ? : null} diff --git a/src/components/Forms/UserForm/UserForm.tsx b/src/components/Forms/UserForm/UserForm.tsx index 4f7dba41..1c058bcf 100644 --- a/src/components/Forms/UserForm/UserForm.tsx +++ b/src/components/Forms/UserForm/UserForm.tsx @@ -368,7 +368,6 @@ const UserForm = ({ answerStatus, setAnswerStatus }: UserFormProps) => { aria-required="false" aria-invalid={errors.is_interested_in_mobility ? true : false} disabled={isForFun} - aria-disabled={isForFun} className="form-check-input" />
- {questionData.number === '1' ? ( + {isQuestion1 ? (

{intl.formatMessage({ id: 'app.question.1.description' })} @@ -406,7 +408,11 @@ const QuestionForm = () => {

) : null}
-

{intl.formatMessage({ id: 'app.questions.answer.text' })}

+

+ {intl.formatMessage({ + id: isQuestion1 ? 'app.questions.1.answer.text' : 'app.questions.answer.text', + })} +

diff --git a/src/i18n/en.json b/src/i18n/en.json index 56072668..564cc2bd 100644 --- a/src/i18n/en.json +++ b/src/i18n/en.json @@ -62,6 +62,7 @@ "app.transport.walk": "walk", "app.transport.scooter": "e-scooter or similar", "app.question.1.description": "If you do not have an opportunity to use a mode, choose 0.", + "app.questions.1.answer.text": "Please answer all options before proceeding.", "app.questions.answer.text": "Please answer the question before proceeding.", "app.questions.api.error": "An error occurred. Questions can't be displayed." } diff --git a/src/i18n/fi.json b/src/i18n/fi.json index d1d69f09..17007335 100644 --- a/src/i18n/fi.json +++ b/src/i18n/fi.json @@ -62,6 +62,7 @@ "app.transport.walk": "kävely", "app.transport.scooter": "sähköpotkulauta tai muu vastaava", "app.question.1.description": "Jos sinulla ei ole mahdollisuutta johonkin kulkumuotoon, valitse 0.", + "app.questions.1.answer.text": "Vastaathan kaikkiin kohtiin ennen kuin siirryt eteenpäin.", "app.questions.answer.text": "Vastaathan kysymykseen ennen kuin siirryt eteenpäin.", "app.questions.api.error": "Tapahtui virhe. Kysymyksiä ei voida näyttää." } diff --git a/src/i18n/sv.json b/src/i18n/sv.json index dd33ef9e..325e66b4 100644 --- a/src/i18n/sv.json +++ b/src/i18n/sv.json @@ -62,6 +62,7 @@ "app.transport.walk": "gående", "app.transport.scooter": "e-skoter eller liknande", "app.question.1.description": "Om du inte har tillgång till ett transportsätt, välj 0.", + "app.questions.1.answer.text": "Vänligen svara på alla alternativ innan du går vidare.", "app.questions.answer.text": "Vänligen svara på frågan innan du går vidare.", "app.questions.api.error": "Ett fel uppstod. Frågor kan inte visas." }