fix(SW-2692): Added hyphens:auto and text-wrap:balance to tackle long words

Approved-by: Matilda Landström
This commit is contained in:
Erik Tiekstra
2025-06-05 05:35:17 +00:00
parent 714b5f06c7
commit 9fb5f82d92
6 changed files with 28 additions and 20 deletions

View File

@@ -50,8 +50,8 @@ export default function SidePeek({
<aside className={styles.sidePeek}>
<header className={styles.header}>
{title ? (
<Typography variant="Title/md" className={styles.heading}>
<h2>{title}</h2>
<Typography variant="Title/md">
<h2 className={styles.heading}>{title}</h2>
</Typography>
) : null}
<Button

View File

@@ -81,6 +81,8 @@
.heading {
color: var(--Text-Heading);
text-wrap: balance;
hyphens: auto;
}
.sidePeekContent {