corona-warn-app / cwa-event-landingpage

Small event landing page for new CWA users when using the native camera. The CWA development ends on May 31, 2023. You still can warn other users until April 30, 2023. More information:
https://coronawarn.app/en/faq/#ramp_down
Apache License 2.0
7 stars 5 forks source link

Literal display of `&shy` in the footer of the page #68

Closed Ein-Tim closed 1 year ago

Ein-Tim commented 1 year ago

Where to find the issue

In the footer of the page. Please note that the problem is not visible on the production domains p.coronawarn.app, s.coronawarn.app or e.coronawarn.app, as the faulty change has not been deployed yet. It was introduced with https://github.com/corona-warn-app/cwa-event-landingpage/pull/51. The issue is visible when locally building the page or on my Vercel preview deployment here: https://cwa-event-landingpage.vercel.app/de/

Describe the issue

The page shows a literal display of the HTML attribute &shy, instead of processing it as HTML code and hiding it from the UI.

Suggested change

This problem needs further investigation and fixing. @MikeMcC399 made an educated guess on why this happens in https://github.com/corona-warn-app/cwa-event-landingpage/pull/67#issuecomment-1409373764. I'm not qualified enough to further look into this, sorry. However, we could go the simple way and just remove the &shy attribute. If you want to go this way, please let me know and I will provide a PR.


Internal Tracking ID: EXPOSUREAPP-14671

MikeMcC399 commented 1 year ago

@Ein-Tim

we could go the simple way and just remove the &shy attribute.

This would not solve the complete set of issues here.

MikeMcC399 commented 1 year ago

Issues

Cosmetic

Display of ­ character

Functional

Open http://localhost:8000/de/ Scroll to bottom Click on link Barrierefreiheits­erklärung to http://localhost:8000/de/coronawarn.app/de/accessibility and note the error message "Cannot GET /de/coronawarn.app/de/accessibility"

Accessibility

  1. Enable a screen reader and navigate to the social media icons. Note that their names are not read out.
  2. View the HTML code and note that the accessibility CSS class aria-label is missing.

Conclusion

This repository was never converted to contain accessible code like the main site https://www.coronawarn.app/ was.

It is misleading to link to the Accessibility statement on https://www.coronawarn.app/en/accessibility/ when the sites e.coronawarn.app (for event-registration), s.coronawarn.app (for rapid antigen tests) and p.coronawarn.app (for rapid PCR tests) were never made accessible. Although the Accessibility statement only refers in its text to the www.coronawarn.app site, the presence of the link also on the e.coronawarn.app, s.coronawarn.app and p.coronawarn.app sites implies that they are accessible when they are not.

It also introduces technical issues (see above) when the accessibility link is added.

Suggested fix

Ein-Tim commented 1 year ago

@svengabr Could you take a look please, as you merged PR #51. I certainly agree with @MikeMcC399 and would offer a PR reverting the change, however, it's up to you to decide what we finally do.

MikeMcC399 commented 1 year ago

@Ein-Tim

Ein-Tim commented 1 year ago

@MikeMcC399 I still wonder why everything looks correct in the screenshots I added to #51. I'm very certain I took them from the footer of a local instance build from the branch of PR #51... Anyway, I'm waiting for further advice from the Open-Source-Team on this. cc @dsarkar & @larswmh

MikeMcC399 commented 1 year ago

@Ein-Tim

I cannot say why your screenshot of the German page does not fit the merged PR. You can recreate the state after the PR was merged using the following:

git switch main
git switch -c recreate-PR51-state
git reset 2f5e3c72fddcf67e6ab9fa19ca350f3425d27dc2 --hard
nvm use 14
npm ci
npm start

Then open http://localhost:8000/de/ and scroll to the bottom.

image

dsarkar commented 1 year ago

@MikeMcC399 @Ein-Tim no need to revert, @larswmh will come back to you with a solution. Thanks!

dsarkar commented 1 year ago
MikeMcC399 commented 1 year ago

@dsarkar

That is unrelated to the footer.

  • actually, the link to the accessibility notice should be removed, that part should be reverted, as suggested by @MikeMcC399

Good you agree! I see now that PR #70 will revert the insertion of the problematic "Accessibility statement" link in the footer.

dsarkar commented 1 year ago

@MikeMcC399 what I meant was, that three braces will solve the issue.

MikeMcC399 commented 1 year ago

@dsarkar

My apologies for misunderstanding you! Sorry!

dsarkar commented 1 year ago

@MikeMcC399 No sorries, no worries! ;-)