Skip to content

Commit

Permalink
feat: enable hypenation for the Root component
Browse files Browse the repository at this point in the history
  • Loading branch information
Robbert committed Dec 27, 2024
1 parent 3becef6 commit 4c37eb9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/twelve-carrots-stare.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@utrecht/root-css": patch
---

Enable hypenation for the Root component.
6 changes: 6 additions & 0 deletions components/root/src/_mixin.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,18 @@
* - the root must be a "positioned ancestor", so elements that are positioned
* outside the normal document flow (`absolute`, `fixed` and `sticky`)
* are positioned relative to the root component.
* - ensure text content fits at 400% zoom by enabling hypenation.
*/
@include reset-font-smoothing;

background-color: var(--utrecht-root-background-color);
block-size: 100%;
color: var(--utrecht-root-color);
font-family: var(--utrecht-root-font-family);
-webkit-hyphens: auto;
-moz-hyphens: auto;
-ms-hyphens: auto;
hyphens: auto;
inline-size: 100%;
overflow-block: auto;
overflow-inline: auto;
Expand All @@ -36,4 +41,5 @@
-moz-text-size-adjust: none;
-webkit-text-size-adjust: none;
text-size-adjust: none;
word-break: break-word;
}

0 comments on commit 4c37eb9

Please sign in to comment.