Files
accountkit/src
CatoandClaude c259b5506e fix(screens): a button label never cuts a hyphenated word across lines (#60)
At 390px evig's sign-in card read "Stattdessen einen Anmeldelink per E- /
Mail schicken": a browser may break after any hyphen, and no CSS property
forbids it. Every button label on AccountKit's screens now keeps each
hyphenated word in a nowrap span (inline style, so it holds without the
stylesheet), in every language and in a product's own labels. Spaces still
wrap, and the accessible name is unchanged.

The browser check renders the sign-in card with every method on, in every
shipped language at 320 and 390px, lays each hyphenated word of each button
out in a Range and fails when it spans two lines. Without the fix it fails
on fr ("par e- / mail") and ru. chatkit's findBrokenWords exempts a break
beside a hyphen by design, so it cannot see this case.


Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-02 09:41:09 +01:00
..