@navikt/ds-css 0.18.5 → 0.18.8

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/form/form.css CHANGED
@@ -8,3 +8,14 @@
8
8
  .navds-form-field > .navds-sr-only + input:not(:first-child) {
9
9
  margin-top: 0;
10
10
  }
11
+
12
+ .navds-form-field .navds-error-message,
13
+ .navds-fieldset .navds-error-message {
14
+ display: flex;
15
+ gap: var(--navds-spacing-2);
16
+ }
17
+
18
+ .navds-form-field .navds-error-message::before,
19
+ .navds-fieldset .navds-error-message::before {
20
+ content: "•";
21
+ }
package/form/index.css CHANGED
@@ -5,7 +5,6 @@
5
5
  @import "form.css";
6
6
  @import "error-summary.css";
7
7
  @import "confirmation-panel.css";
8
- @import "error-message.css";
9
8
  @import "radio-checkbox.css";
10
9
  @import "select.css";
11
10
  @import "switch.css";
package/form/textarea.css CHANGED
@@ -36,9 +36,8 @@
36
36
  border: 1px solid var(--navds-textarea-color-border);
37
37
  resize: none;
38
38
  width: 100%;
39
- transition: height 0.1s ease-out;
40
39
  display: block;
41
- min-height: 3rem;
40
+ min-height: 48px;
42
41
  }
43
42
 
44
43
  .navds-textarea--counter {
@@ -55,8 +54,7 @@
55
54
  }
56
55
 
57
56
  .navds-form-field--small .navds-textarea__input {
58
- padding: var(--navds-spacing-1);
59
- min-height: 2rem;
57
+ padding: 6px;
60
58
  }
61
59
 
62
60
  .navds-form-field--small .navds-textarea--counter.navds-textarea__input {
@@ -68,16 +66,20 @@
68
66
  color: var(--navds-textarea-color-counter-text);
69
67
  font-style: italic;
70
68
  position: absolute;
71
- text-align: right;
72
- left: var(--navds-spacing-3);
73
- right: var(--navds-spacing-3);
74
- bottom: var(--navds-spacing-2);
69
+ text-align: left;
70
+ left: 1px;
71
+ bottom: 1px;
72
+ padding: var(--navds-spacing-1) var(--navds-spacing-2);
75
73
  }
76
74
 
77
75
  .navds-textarea__counter--error {
78
76
  color: var(--navds-textarea-color-counter-text-error);
79
77
  }
80
78
 
79
+ .navds-textarea--resize .navds-textarea__input {
80
+ resize: both;
81
+ }
82
+
81
83
  /**
82
84
  Error handling
83
85
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@navikt/ds-css",
3
- "version": "0.18.5",
3
+ "version": "0.18.8",
4
4
  "description": "Css for NAV Designsystem components",
5
5
  "author": "NAV Designsystem team",
6
6
  "keywords": [
@@ -12,7 +12,7 @@
12
12
  },
13
13
  "repository": {
14
14
  "type": "git",
15
- "url": "git+https://github.com/navikt/nav-frontend-moduler.git"
15
+ "url": "git+https://github.com/navikt/Designsystemet.git"
16
16
  },
17
17
  "main": "./dist/index.css",
18
18
  "scripts": {
@@ -20,12 +20,12 @@
20
20
  "watch": "postcss --watch --use postcss-import -o dist/index.css index.css"
21
21
  },
22
22
  "devDependencies": {
23
- "@navikt/ds-tokens": "^0.9.4",
23
+ "@navikt/ds-tokens": "^0.9.5",
24
24
  "normalize.css": "^8.0.1",
25
25
  "postcss": "^8.3.6",
26
26
  "postcss-cli": "^8.3.1",
27
27
  "postcss-combine-duplicated-selectors": "10.0.3",
28
28
  "postcss-import": "^14.0.2"
29
29
  },
30
- "gitHead": "d05f495d6c76465827ac6c43f1cf5ab457e9bfc8"
30
+ "gitHead": "e586812ddffa50fc5aad663c30121ba09ae2ffef"
31
31
  }
package/typography.css CHANGED
@@ -1,3 +1,9 @@
1
+ :root {
2
+ --navds-error-message-color-text: var(
3
+ --navds-semantic-color-feedback-danger-text
4
+ );
5
+ }
6
+
1
7
  /* Heading */
2
8
  .navds-heading {
3
9
  font-weight: var(--navds-font-weight-bold);
@@ -161,7 +167,6 @@
161
167
  /* Small text */
162
168
  .navds-detail {
163
169
  font-size: var(--navds-font-size-small);
164
- font-weight: var(--navds-font-weight-bold);
165
170
  letter-spacing: 0.004em;
166
171
  line-height: var(--navds-font-line-height-medium);
167
172
  margin: 0;
@@ -171,6 +176,10 @@
171
176
  margin-bottom: var(--navds-spacing-2);
172
177
  }
173
178
 
179
+ .navds-detail.navds-typo--uppercase {
180
+ text-transform: uppercase;
181
+ }
182
+
174
183
  .navds-detail--small {
175
184
  font-weight: var(--navds-font-weight-regular);
176
185
  }
@@ -178,3 +187,7 @@
178
187
  .navds-detail--small.navds-typo--spacing {
179
188
  margin-bottom: var(--navds-spacing-2);
180
189
  }
190
+
191
+ .navds-error-message {
192
+ color: var(--navds-error-message-color-text);
193
+ }
@@ -1,15 +0,0 @@
1
- :root {
2
- --navds-error-message-color-text: var(
3
- --navds-semantic-color-feedback-danger-text
4
- );
5
- }
6
-
7
- .navds-error-message {
8
- color: var(--navds-error-message-color-text);
9
- display: flex;
10
- gap: var(--navds-spacing-2);
11
- }
12
-
13
- .navds-error-message::before {
14
- content: "•";
15
- }