@utrecht/root-css 1.0.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @utrecht/root-css
2
2
 
3
+ ## 1.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 4c37eb9: Enable hypenation for the Root component.
8
+
9
+ ## 1.1.0
10
+
11
+ ### Minor Changes
12
+
13
+ - 725617a: Add `tokens.mjs` and `tokens.d.mts` files to CSS packages.
14
+
3
15
  ## 1.0.0
4
16
 
5
17
  ### Major Changes
package/dist/index.css CHANGED
@@ -10,6 +10,10 @@
10
10
  block-size: 100%;
11
11
  color: var(--utrecht-root-color);
12
12
  font-family: var(--utrecht-root-font-family);
13
+ -webkit-hyphens: auto;
14
+ -moz-hyphens: auto;
15
+ -ms-hyphens: auto;
16
+ hyphens: auto;
13
17
  inline-size: 100%;
14
18
  overflow-block: auto;
15
19
  overflow-inline: auto;
@@ -18,4 +22,5 @@
18
22
  -moz-text-size-adjust: none;
19
23
  -webkit-text-size-adjust: none;
20
24
  text-size-adjust: none;
25
+ word-break: break-word;
21
26
  }
@@ -1 +1 @@
1
- .utrecht-root{-webkit-font-smoothing:auto!important;-moz-osx-font-smoothing:auto!important;background-color:var(--utrecht-root-background-color);block-size:100%;color:var(--utrecht-root-color);font-family:var(--utrecht-root-font-family);inline-size:100%;overflow-block:auto;overflow-inline:auto;position:relative;text-rendering:optimizeLegibility;-moz-text-size-adjust:none;-webkit-text-size-adjust:none;text-size-adjust:none}
1
+ .utrecht-root{-webkit-font-smoothing:auto!important;-moz-osx-font-smoothing:auto!important;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;position:relative;text-rendering:optimizeLegibility;-moz-text-size-adjust:none;-webkit-text-size-adjust:none;text-size-adjust:none;word-break:break-word}
package/dist/index.mjs CHANGED
@@ -1 +1 @@
1
- export default ".utrecht-root{-webkit-font-smoothing:auto!important;-moz-osx-font-smoothing:auto!important;background-color:var(--utrecht-root-background-color);block-size:100%;color:var(--utrecht-root-color);font-family:var(--utrecht-root-font-family);inline-size:100%;overflow-block:auto;overflow-inline:auto;position:relative;text-rendering:optimizeLegibility;-moz-text-size-adjust:none;-webkit-text-size-adjust:none;text-size-adjust:none}";
1
+ export default ".utrecht-root{-webkit-font-smoothing:auto!important;-moz-osx-font-smoothing:auto!important;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;position:relative;text-rendering:optimizeLegibility;-moz-text-size-adjust:none;-webkit-text-size-adjust:none;text-size-adjust:none;word-break:break-word}";
@@ -0,0 +1,4 @@
1
+
2
+ declare const tokens: any;
3
+
4
+ export default tokens;
@@ -0,0 +1,36 @@
1
+ export default {
2
+ "utrecht": {
3
+ "root": {
4
+ "background-color": {
5
+ "$extensions": {
6
+ "nl.nldesignsystem.css.property": {
7
+ "syntax": "<color>",
8
+ "inherits": true
9
+ },
10
+ "nl.nldesignsystem.figma.supports-token": false
11
+ },
12
+ "type": "color"
13
+ },
14
+ "color": {
15
+ "$extensions": {
16
+ "nl.nldesignsystem.css.property": {
17
+ "syntax": "<color>",
18
+ "inherits": true
19
+ },
20
+ "nl.nldesignsystem.figma.supports-token": false
21
+ },
22
+ "type": "color"
23
+ },
24
+ "font-family": {
25
+ "$extensions": {
26
+ "nl.nldesignsystem.css.property": {
27
+ "syntax": "*",
28
+ "inherits": true
29
+ },
30
+ "nl.nldesignsystem.figma.supports-token": false
31
+ },
32
+ "type": "fontFamilies"
33
+ }
34
+ }
35
+ }
36
+ };
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.0.0",
2
+ "version": "1.1.1",
3
3
  "author": "Community for NL Design System",
4
4
  "description": "Root component for the Municipality of Utrecht based on the NL Design System architecture",
5
5
  "license": "EUPL-1.2",
package/src/_mixin.scss CHANGED
@@ -21,6 +21,7 @@
21
21
  * - the root must be a "positioned ancestor", so elements that are positioned
22
22
  * outside the normal document flow (`absolute`, `fixed` and `sticky`)
23
23
  * are positioned relative to the root component.
24
+ * - ensure text content fits at 400% zoom by enabling hypenation.
24
25
  */
25
26
  @include reset-font-smoothing;
26
27
 
@@ -28,6 +29,10 @@
28
29
  block-size: 100%;
29
30
  color: var(--utrecht-root-color);
30
31
  font-family: var(--utrecht-root-font-family);
32
+ -webkit-hyphens: auto;
33
+ -moz-hyphens: auto;
34
+ -ms-hyphens: auto;
35
+ hyphens: auto;
31
36
  inline-size: 100%;
32
37
  overflow-block: auto;
33
38
  overflow-inline: auto;
@@ -36,4 +41,5 @@
36
41
  -moz-text-size-adjust: none;
37
42
  -webkit-text-size-adjust: none;
38
43
  text-size-adjust: none;
44
+ word-break: break-word;
39
45
  }