@navikt/ds-css 0.18.20 → 0.18.23

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/search.css CHANGED
@@ -6,6 +6,7 @@
6
6
  --navds-semantic-color-interaction-primary
7
7
  );
8
8
  --navds-search-color-clear-hover: var(--navds-global-color-blue-500);
9
+ --navds-search-color-border-error: var(--navds-global-color-red-500);
9
10
  }
10
11
 
11
12
  [data-theme="dark"] {
@@ -13,6 +14,7 @@
13
14
  --navds-search-color-border: var(--navds-semantic-color-border-inverted);
14
15
  --navds-search-color-border-hover: var(--navds-global-color-blue-200);
15
16
  --navds-search-color-clear-hover: var(--navds-global-color-blue-200);
17
+ --navds-search-color-border-error: var(--navds-global-color-red-300);
16
18
  }
17
19
 
18
20
  .navds-search {
@@ -150,6 +152,17 @@
150
152
  box-shadow: 0 0 0 1px white inset, var(--navds-shadow-focus);
151
153
  }
152
154
 
155
+ /* Error-handling */
156
+ .navds-search--error .navds-search__input:not(:hover):not(:disabled) {
157
+ border-color: var(--navds-search-color-border-error);
158
+ box-shadow: inset 0 0 0 1px var(--navds-search-color-border-error);
159
+ }
160
+
161
+ .navds-search--error .navds-search__input:focus:not(:hover):not(:disabled) {
162
+ box-shadow: inset 0 0 0 1px var(--navds-search-color-border-error),
163
+ var(--navds-shadow-focus);
164
+ }
165
+
153
166
  /* Focus layering */
154
167
  .navds-search__input:focus,
155
168
  .navds-search__button-clear,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@navikt/ds-css",
3
- "version": "0.18.20",
3
+ "version": "0.18.23",
4
4
  "description": "Css for NAV Designsystem components",
5
5
  "author": "NAV Designsystem team",
6
6
  "keywords": [
@@ -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.6",
23
+ "@navikt/ds-tokens": "^0.9.7",
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": "4f437d4e15befce3aef21440141ad7d36138219d"
30
+ "gitHead": "0826fcf332a3499c610d8d2035fbd542c9ed0433"
31
31
  }
package/stepper.css CHANGED
@@ -13,7 +13,7 @@
13
13
 
14
14
  .navds-stepper--horizontal {
15
15
  display: flex;
16
- align-items: start;
16
+ align-items: flex-start;
17
17
  text-align: center;
18
18
  }
19
19
 
@@ -23,7 +23,7 @@
23
23
  [line-1] auto [step-start] var(--navds-stepper-circle-size)
24
24
  [line-2 step-end] auto;
25
25
  grid-template-columns: var(--navds-stepper-circle-size) auto;
26
- justify-items: start;
26
+ justify-items: flex-start;
27
27
  gap: 0.5rem;
28
28
  }
29
29
 
@@ -56,7 +56,7 @@
56
56
  grid-template-columns: [circle] var(--navds-stepper-circle-size) [content] auto;
57
57
  gap: var(--navds-spacing-2);
58
58
  align-items: baseline;
59
- justify-content: start;
59
+ justify-content: flex-start;
60
60
  text-decoration: none;
61
61
  cursor: pointer;
62
62
  padding: var(--navds-stepper-border-width);
package/typography.css CHANGED
@@ -1,9 +1,14 @@
1
- :root {
1
+ :root,
2
+ [data-theme="light"] {
2
3
  --navds-error-message-color-text: var(
3
4
  --navds-semantic-color-feedback-danger-text
4
5
  );
5
6
  }
6
7
 
8
+ [data-theme="dark"] {
9
+ --navds-error-message-color-text: var(--navds-global-color-red-300);
10
+ }
11
+
7
12
  /* Heading */
8
13
  .navds-heading {
9
14
  font-weight: var(--navds-font-weight-bold);