@navikt/ds-css 0.18.21 → 0.18.24

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/link-panel.css CHANGED
@@ -12,7 +12,7 @@
12
12
  display: flex;
13
13
  align-items: center;
14
14
  justify-content: space-between;
15
- gap: var(--navds-spacing-2);
15
+ gap: var(--navds-spacing-4);
16
16
  }
17
17
 
18
18
  .navds-link-panel:hover .navds-link-panel__title {
@@ -42,5 +42,5 @@
42
42
  }
43
43
 
44
44
  .navds-link-panel__description {
45
- margin-top: var(--navds-spacing-2);
45
+ margin-top: var(--navds-spacing-1);
46
46
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@navikt/ds-css",
3
- "version": "0.18.21",
3
+ "version": "0.18.24",
4
4
  "description": "Css for NAV Designsystem components",
5
5
  "author": "NAV Designsystem team",
6
6
  "keywords": [
@@ -27,5 +27,5 @@
27
27
  "postcss-combine-duplicated-selectors": "10.0.3",
28
28
  "postcss-import": "^14.0.2"
29
29
  },
30
- "gitHead": "7596f3f5dc4c6d9faf919a06e7aa1408a6c98524"
30
+ "gitHead": "31a37c5f70f4653c66757825c530628309c16223"
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/table.css CHANGED
@@ -148,7 +148,7 @@
148
148
  }
149
149
 
150
150
  .navds-table__header-cell--align-right .navds-table__sort-button {
151
- justify-content: end;
151
+ justify-content: flex-end;
152
152
  }
153
153
 
154
154
  .navds-table__header-cell--align-center .navds-table__sort-button {
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);