minvws / nl-covid19-data-dashboard

The dashboard provides information on the outbreak and prevalence of COVID-19 in The Netherlands

Home Page:https://coronadashboard.rijksoverheid.nl/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Overflow of titles on mobile devices

jobvink opened this issue · comments

Overflow of titles on mobile devices

On mobile devices such as iPhone, long titles can overflow the design, this happens because the overflow-wrap and hypens css-property of these titles are not specified and set to there default. The correct values should be overflow-wrap: break-word and because the page language is already set to nl hyphens: auto can be used to break the titles automatically.

To Reproduce

Steps to reproduce the behavior:

  1. Go to https://coronadashboard.rijksoverheid.nl/landelijk/vaccinaties
  2. Set the with of your viewport to 375px
  3. Scroll down to 'Vaccinatiebereidheid'
  4. The title 'Vaccinatiebereidheid' should overflow the design.

Expected behavior

Long titles should hyphenate when represent on smaller devices.

Screenshots

IMG_4108

Smartphone (please complete the following information):

  • Device: iPhone X
  • OS: IOS 14.4.2
  • Browser safari
  • Version 14

Governance

commented

Thanks for the report! We're aware of the issue and have it on our list of items to fix. We might opt for just using a slightly smaller font-size but appreciate the suggestion to hyphenate.

commented

This has been fixed as part of #2816 but is not deployed to production yet. So let's close it when it becomes public.