Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Text expansion breaking buttons in German: how to fix it

PRF-365Low impactCould addBy FunnelGuardPublished Updated
On this page

What this issue is

Text expansion is the way text gets longer when you translate it. A short English label such as Sign up becomes Jetzt kostenlos registrieren in German. German also uses long compound words, for example Datenschutzerklärung, which cannot break across lines by default.

Buttons designed around English text often have a fixed width, a fixed height, white-space: nowrap or a set font size. When the longer label does not fit, the text spills outside the button, gets clipped, wraps onto a second line that hides behind the edge, or pushes other elements out of place.

Why it costs you leads or sales

A call to action that is cut off or overlaps other elements is harder to read and looks untrustworthy. Visitors may not understand what the button does, or on mobile may not be able to tap it properly. The impact is usually small per page, but it hits the buttons that matter most: add to cart, submit, book now.

Where a long label hurts the journey
  1. German landing pagePage loads in the right language
  2. Button labelText overflows or is cut off
  3. Form or cartFewer visitors reach it
  4. Lead or saleNot completed

A clipped call to action on the translated page weakens every step after it.

Fixed-width button vs flexible button

Before

  • Width set to 140px
  • white-space: nowrap
  • Label overflows the edges
  • Mobile layout pushed sideways

After

  • min-width with padding
  • Text may wrap to two lines
  • Long words hyphenate
  • Button grows to fit the label

How to check if your site has it

Check your translated pages
  1. List your longest languages

    German, Finnish, Dutch, Russian, Portuguese and French usually expand the most. Check these first.

  2. Open key pages in each language

    Check the homepage, landing pages, forms, cart and checkout, including navigation, hero buttons and form submit buttons.

  3. Test narrow screens

    In browser developer tools, use device mode at 320px and 375px wide. Narrow screens expose problems first.

  4. Try the longest strings

    Look at buttons with two or three words, error messages and states such as Loading or Added to cart, which also change the text.

  5. Try browser zoom

    Set text zoom to 150% or 200%. Buttons that survive this usually handle long translations well.

How to fix it

The principle is the same everywhere: size the button from its content, not from a fixed number. Then adjust within your platform or theme.

Flexible button CSScss
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  min-height: 44px;
  height: auto;
  padding: 12px 24px;
  white-space: normal;
  text-align: center;
  overflow-wrap: anywhere;
  hyphens: auto;
  line-height: 1.25;
}
Fix by platform
  1. Find the button style

    In Appearance > Customize > Additional CSS, or your page builder's button settings, remove fixed width and height values.

  2. Add flexible CSS

    Paste the CSS above, changing the selector to your theme's button class. Check that your translation plugin outputs the correct lang attribute.

How to confirm it's fixed

Confirmation checklist
  • Every button label is fully visible in each language
  • No text touches or overflows the button edge
  • Buttons stay tappable (about 44px high) on a 320px screen
  • No horizontal scrolling appears on translated pages
  • Long words hyphenate or wrap instead of spilling out
  • Hover, loading and error states also fit

How to prevent it happening again

Design with growth in mind. A common rule of thumb is to leave room for labels noticeably longer than the English text. Use a stress test: replace labels with a long placeholder such as Datenschutzerklärung akzeptieren during design review.

Habits that stop it coming back
  • Never set a fixed width or height on buttons
  • Add a translated-page review to your release checklist
  • Review new buttons and copy in your longest language first
  • Always declare the lang attribute on each language version
  • Brief translators on character limits for buttons

How FunnelGuard handles this

FunnelGuard does not check for text expansion or visual layout problems like this yet. It is a possible future check. Today it does not judge whether a button looks right.

What it does cover nearby: a robot visitor runs your real customer journeys on a schedule, and if a button is so badly covered or broken that the journey cannot continue, the step fails and you get one alert with a screenshot and a likely cause. It also checks tracking hits and that test leads arrive. That does not replace a visual review of each language.

To watch for it yourself, review each language version after every design or translation change using the checks above. Browser developer tools device mode or a visual regression tool can help. FunnelGuard has a Free plan (1 site, 2 journeys, daily checks, no card) and a free read-only website audit.

Questions people ask

Why is my button text cut off in German?

German words and phrases are usually longer than English ones, and buttons with a fixed width or height cannot grow. Remove fixed sizes, use padding and min-width, and allow the text to wrap.

How much longer is German text than English?

It varies by phrase, but German labels are often noticeably longer than English, and short UI strings expand proportionally the most. Plan button space with generous room instead of relying on one fixed percentage.

How do I make a button fit any language?

Size it from its content: use min-width, padding, height: auto, white-space: normal and hyphens: auto. Also set the correct lang attribute on the page.

Why is hyphens: auto not working?

The browser needs to know the page language to hyphenate. Add a lang attribute such as <html lang="de"> and make sure the element is not set to white-space: nowrap.

Which languages need the most space on buttons?

German, Finnish, Dutch and Russian are often among the longest, and French and Portuguese tend to run longer than English too. Test the longest languages you support first.

Does text expansion affect mobile more than desktop?

Yes, narrow screens leave less room, so overflow and awkward wrapping show up first at around 320 to 375px wide. Always test translated pages in mobile view.

Can FunnelGuard detect broken button layouts from long translations?

No. FunnelGuard does not check visual layout or text expansion yet. It would only notice if the button became impossible to use and a journey step failed.

Does FunnelGuard catch this?

Could add

Not checked yet: could be added to FunnelGuard.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.