fix(MWPW-190279): locale-aware line-break rules for DE, BR, RO, JP in prompt-bar - #748
fix(MWPW-190279): locale-aware line-break rules for DE, BR, RO, JP in prompt-bar#748dstrong23 wants to merge 1 commit into
Conversation
|
Hello, I'm the AEM Code Sync Bot and I will run some actions to deploy your branch and validate page speed.
Commits
|
|
No activity in 7 days. Will be labeled No activity in 14 days, labeled No activity in 21 days, labeled No activity in 28 days. Would normally close now, but auto-close is disabled this run. Add Rundeck job Git Stale PR Check (git-stale-pr-bot), execution 2739336, project global, run by casalino |
Summary
Fixes MWPW-190279 — line breaking issues visible in the prompt-based Unity block on localized pages (de-DE, pt-BR, ro-RO, ja-JP).
Although the affected pages have since been migrated to the new upload marquee experience, the underlying block had no locale-aware line-breaking rules. This fix makes the block robust for future use across both
hero-marqueeandupload-marqueecontexts.Root Cause
The
.inp-wrap .inp-fieldtextarea and heading/body text elements in unity-enabled marquee blocks had nooverflow-wrap,word-break, or locale-aware line-breaking rules. Languages like German and Romanian produce long compound words that overflow fixed-width containers without these guards. Japanese requires CJK-specific line-breaking rules (word-break: keep-all,line-break: strict) that differ from the Latin-script approach.Changes
File:
unitylibs/core/widgets/prompt-bar/prompt-bar.cssBase rule (all locales):
overflow-wrap: break-word,word-break: break-word, andhyphens: autoto heading and body text elements inside.hero-marquee.unity-enabledand.upload-marquee.unity-enabledinteractive areasoverflow-wrap: break-wordandword-break: break-wordto.inp-wrap .inp-field(the prompt textarea)Japanese override (
[lang="ja-JP"]):word-break: keep-allandline-break: strictto follow JIS line-breaking rulesoverflow-wrap: anywhere(instead ofbreak-word) to handle edge cases like Latin strings or URLs typed into a JA contexthyphens: auto(not applicable to CJK).inp-fieldprompt inputThis follows the existing
[lang="ja-JP"]locale override pattern already present in this file.Testing
Jira
MWPW-190279