fix(fxa-settings): prevent CJK button labels breaking one character per line - #21014
fix(fxa-settings): prevent CJK button labels breaking one character per line#21014vpomerleau wants to merge 2 commits into
Conversation
fa280e8 to
95ce9ff
Compare
|
Marked as draft, there are some issues with button layout and latin languages with long text strings. |
|
pushed a follow-up on #20724 for the latin layout — swapped checked the modal squeezed unit-row (the original cjk stacking). left is no keep-all, right is keep-all: modal pair in |
…er line Flex-shrink on settings row and modal CTA buttons was squeezing Japanese, Chinese, and Korean labels to a single character per line. Keep button text on one line and let paired modal actions wrap as a group when space is tight. Use child mx-2 margins for modal button spacing instead of gap-2 to avoid doubled horizontal spacing that caused premature wrapping. Fixes #18683
whitespace-nowrap stopped CJK from stacking one character per line, but it also blocked wrapping for long English and German strings in tight flex layouts. Use break-keep so CJK still will not split between characters and latin can wrap on spaces.
95ce9ff to
4f6ef6f
Compare


Because
This pull request
main. No content changes.Issue that this pull request solves
Mirror of #20724 — see that PR for the issue reference.
Checklist
Put an
xin the boxes that apply