Skip to content

Commit

Permalink
🎨 fix word-break to break normally and on hyphen
Browse files Browse the repository at this point in the history
  • Loading branch information
jiromaykin committed Feb 17, 2023
1 parent ba27e06 commit ba49f84
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/open_inwoner/scss/components/Actions/Actions.scss
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@

.actions__label {
padding: var(--spacing-medium);
word-break: break-all;
word-break: normal;
overflow-wrap: break-word;

&--big {
grid-column: 1 / span 2;
Expand Down
3 changes: 2 additions & 1 deletion src/open_inwoner/scss/components/Typography/H1.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
justify-content: space-between;

@include mobile-only {
word-break: break-all;
word-break: normal;
overflow-wrap: break-word;
}

&:first-of-type {
Expand Down
3 changes: 2 additions & 1 deletion src/open_inwoner/scss/components/Typography/H2.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
}

@include mobile-only {
word-break: break-all;
word-break: normal;
overflow-wrap: break-word;
}
}

Expand Down

0 comments on commit ba49f84

Please sign in to comment.