Skip to content

Commit

Permalink
fix: allow browser to break words in labels, headers, and paragraphs …
Browse files Browse the repository at this point in the history
…instead over overflowing
  • Loading branch information
lucasnetau committed Feb 26, 2024
1 parent 9be72d3 commit e8bc802
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions src/sass/_stage.scss
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,28 @@
}
}

&.header-field {
h1,
h2,
h3,
h4,
h5,
h6 {
word-break: break-word;
}
}

&.paragraph-field {
p {
word-break: break-word;
}
}

.field-label {
display: block;
overflow-wrap: break-word;
}

&.button-field,
&.header-field,
&.paragraph-field {
Expand Down

0 comments on commit e8bc802

Please sign in to comment.