Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible horizontal overflow when long words are used in some components #4462

Open
AshGDS opened this issue Dec 2, 2024 · 0 comments
Open
Labels
design Design inconsistencies and quirks

Comments

@AshGDS
Copy link
Contributor

AshGDS commented Dec 2, 2024

When testing a PR in government-frontend I noticed that there's a horizontal scrollbar on this page at mobile with in Chrome:

Example at 302px page width:
image

This is because https://www.globalinnovation.fund/ is one long word, and we may not have styles in place to account for long words. I think this will depend on the user's font size/zoom scale, as when I view the page on my actual phone I don't get this behaviour unless I increase my phone text scale in the settings.

The above link is within the govspeak component, but I think it could happen in some other components. I haven't checked thoroughly but I have noticed it can happen on large versions of heading component - though I can appreciate that a long word being used in a large heading is likely rare.

Example of a heading at 364px page width:
image

@AshGDS AshGDS added the design Design inconsistencies and quirks label Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
design Design inconsistencies and quirks
Projects
None yet
Development

No branches or pull requests

1 participant