fix(SW-2692): Added hyphens:auto and text-wrap:balance to tackle long words
Approved-by: Matilda Landström
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -81,6 +81,8 @@
|
||||
|
||||
.heading {
|
||||
color: var(--Text-Heading);
|
||||
text-wrap: balance;
|
||||
hyphens: auto;
|
||||
}
|
||||
|
||||
.sidePeekContent {
|
||||
|
||||
Reference in New Issue
Block a user