@navikt/ds-css 2.1.7 → 2.3.0

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,21 @@
1
1
  # @navikt/ds-css
2
2
 
3
+ ## 2.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#1813](https://github.com/navikt/aksel/pull/1813) [`7702c6527`](https://github.com/navikt/aksel/commit/7702c65275a4d86a8260852d091e6dd4cfe9217c) Thanks [@ingfo](https://github.com/ingfo)! - Fiksa sentrering av tekst i Select i Firefox
8
+
9
+ ### Patch Changes
10
+
11
+ - [`51b62cca7`](https://github.com/navikt/aksel/commit/51b62cca7b857e92669cd0b09e620b131faf80e5) Thanks [@KenAJoh](https://github.com/KenAJoh)! - Select small 34px høyde -> 32px
12
+
13
+ ## 2.2.0
14
+
15
+ ### Minor Changes
16
+
17
+ - [#1789](https://github.com/navikt/aksel/pull/1789) [`c0929a534`](https://github.com/navikt/aksel/commit/c0929a534dc8effece5435f8be550cb7931a52b1) Thanks [@KenAJoh](https://github.com/KenAJoh)! - Button og ToggleGroup har nå en neutral-variant, oppdatert neutral-tokens
18
+
3
19
  ## 2.1.7
4
20
 
5
21
  ## 2.1.6
package/accordion.css CHANGED
@@ -14,7 +14,7 @@
14
14
  background: transparent;
15
15
  cursor: pointer;
16
16
  border: none;
17
- border-bottom: 2px solid var(--ac-accordion-header-border, var(--a-border-strong));
17
+ border-bottom: 2px solid var(--ac-accordion-header-border, var(--a-border-divider));
18
18
  }
19
19
 
20
20
  .navds-accordion__header:focus {
@@ -24,7 +24,7 @@
24
24
 
25
25
  .navds-accordion__header:hover {
26
26
  color: var(--ac-accordion-header-text-hover, var(--a-text-action-on-action-subtle));
27
- border-color: var(--ac-accordion-header-border-hover, var(--a-border-strong));
27
+ border-color: var(--ac-accordion-header-border-hover, var(--a-border-default));
28
28
  }
29
29
 
30
30
  .navds-accordion__header-content {
@@ -39,11 +39,11 @@
39
39
 
40
40
  .navds-accordion__content {
41
41
  padding: var(--a-spacing-3) var(--a-spacing-3) 18px;
42
- border-bottom: 2px solid var(--ac-accordion-content-border, var(--a-border-strong));
42
+ border-bottom: 2px solid var(--ac-accordion-content-border, var(--a-border-divider));
43
43
  }
44
44
 
45
45
  .navds-accordion__item--open > .navds-accordion__header:hover + * .navds-accordion__content {
46
- border-color: var(--ac-accordion-content-border-open, var(--a-border-strong));
46
+ border-color: var(--ac-accordion-content-border-open, var(--a-border-default));
47
47
  }
48
48
 
49
49
  .navds-accordion__expand-icon {
package/alert.css CHANGED
@@ -24,6 +24,7 @@
24
24
  font-size: 1.5rem;
25
25
  align-self: flex-start;
26
26
  height: var(--a-font-line-height-xlarge);
27
+ background: radial-gradient(circle, var(--a-surface-default) 50%, 0, transparent);
27
28
  }
28
29
 
29
30
  .navds-alert--small > .navds-alert__icon {
@@ -41,6 +42,10 @@
41
42
  background-color: var(--ac-alert-warning-bg, var(--a-surface-warning-subtle));
42
43
  }
43
44
 
45
+ .navds-alert--warning > .navds-alert__icon {
46
+ background: radial-gradient(circle at 50% 57%, var(--a-surface-default) 32%, 0, transparent);
47
+ }
48
+
44
49
  .navds-alert--info {
45
50
  border-color: var(--ac-alert-info-border, var(--a-border-info));
46
51
  background-color: var(--ac-alert-info-bg, var(--a-surface-info-subtle));
package/button.css CHANGED
@@ -112,13 +112,39 @@
112
112
  background-color: var(--ac-button-primary-bg, var(--a-surface-action));
113
113
  }
114
114
 
115
+ /*************************
116
+ * .navds-button--primary-neutral *
117
+ *************************/
118
+
119
+ .navds-button--primary-neutral {
120
+ background-color: var(--ac-button-primary-neutral-bg, var(--a-surface-neutral));
121
+ color: var(--ac-button-primary-neutral-text, var(--a-text-on-neutral));
122
+ }
123
+
124
+ .navds-button--primary-neutral:hover {
125
+ background-color: var(--ac-button-primary-neutral-hover-bg, var(--a-surface-neutral-hover));
126
+ }
127
+
128
+ .navds-button--primary-neutral:active {
129
+ background-color: var(--ac-button-primary-neutral-active-bg, var(--a-surface-neutral-active));
130
+ }
131
+
132
+ .navds-button--primary-neutral:focus {
133
+ box-shadow: inset 0 0 0 1px var(--ac-button-primary-neutral-focus-border, var(--a-surface-default)), var(--a-shadow-focus);
134
+ }
135
+
136
+ .navds-button--primary-neutral:hover:where(:disabled, .navds-button--disabled),
137
+ .navds-button--primary-neutral:active:where(:disabled, .navds-button--disabled) {
138
+ background-color: var(--ac-button-primary-neutral-bg, var(--a-surface-neutral));
139
+ }
140
+
115
141
  /**************************
116
142
  * .navds-button--secondary *
117
143
  **************************/
118
144
 
119
145
  .navds-button--secondary {
120
146
  color: var(--ac-button-secondary-text, var(--a-text-action));
121
- background-color: var(--ac-button-secondary-bg, var(--a-surface-default));
147
+ background-color: var(--ac-button-secondary-bg, var(--a-surface-transparent));
122
148
  box-shadow: inset 0 0 0 2px var(--ac-button-secondary-border, var(--a-border-action));
123
149
  }
124
150
 
@@ -144,10 +170,47 @@
144
170
  .navds-button--secondary:where(:disabled, .navds-button--disabled),
145
171
  .navds-button--secondary:hover:where(:disabled, .navds-button--disabled) {
146
172
  color: var(--ac-button-secondary-text, var(--a-text-action));
147
- background-color: var(--ac-button-secondary-bg, var(--a-surface-default));
173
+ background-color: var(--ac-button-secondary-bg, var(--a-surface-transparent));
148
174
  box-shadow: inset 0 0 0 2px var(--ac-button-secondary-border, var(--a-border-action));
149
175
  }
150
176
 
177
+ /**************************
178
+ * .navds-button--secondary-neutral *
179
+ **************************/
180
+
181
+ .navds-button--secondary-neutral {
182
+ color: var(--ac-button-secondary-neutral-text, var(--a-text-default));
183
+ background-color: var(--ac-button-secondary-neutral-bg, var(--a-surface-transparent));
184
+ box-shadow: inset 0 0 0 2px var(--ac-button-secondary-neutral-border, var(--a-border-strong));
185
+ }
186
+
187
+ .navds-button--secondary-neutral:hover {
188
+ background-color: var(--ac-button-secondary-neutral-hover-bg, var(--a-surface-neutral-subtle-hover));
189
+ }
190
+
191
+ .navds-button--secondary-neutral:focus {
192
+ color: var(--ac-button-secondary-neutral-text, var(--a-text-default));
193
+ box-shadow: inset 0 0 0 2px var(--ac-button-secondary-neutral-focus-border, var(--a-border-strong)), var(--a-shadow-focus);
194
+ }
195
+
196
+ .navds-button--secondary-neutral:active {
197
+ color: var(--ac-button-secondary-neutral-active-text, var(--a-text-on-neutral));
198
+ background-color: var(--ac-button-secondary-neutral-active-bg, var(--a-surface-neutral-active));
199
+ box-shadow: none;
200
+ }
201
+
202
+ .navds-button--secondary-neutral:focus:active {
203
+ box-shadow: inset 0 0 0 1px var(--ac-button-secondary-neutral-active-focus-border, var(--a-surface-default)),
204
+ var(--a-shadow-focus);
205
+ }
206
+
207
+ .navds-button--secondary-neutral:where(:disabled, .navds-button--disabled),
208
+ .navds-button--secondary-neutral:hover:where(:disabled, .navds-button--disabled) {
209
+ color: var(--ac-button-secondary-neutral-text, var(--a-text-default));
210
+ background-color: var(--ac-button-secondary-neutral-bg, var(--a-surface-transparent));
211
+ box-shadow: inset 0 0 0 2px var(--ac-button-secondary-neutral-border, var(--a-border-strong));
212
+ }
213
+
151
214
  /****************************
152
215
  * .navds-button--tertiary *
153
216
  ****************************/
@@ -188,6 +251,46 @@
188
251
  box-shadow: none;
189
252
  }
190
253
 
254
+ /****************************
255
+ * .navds-button--tertiary-neutral *
256
+ ****************************/
257
+
258
+ .navds-button--tertiary-neutral {
259
+ color: var(--ac-button-tertiary-neutral-text, var(--a-text-default));
260
+ }
261
+
262
+ .navds-button--tertiary-neutral:hover {
263
+ color: var(--ac-button-tertiary-neutral-hover-text, var(--a-text-default));
264
+ background-color: var(--ac-button-tertiary-neutral-hover-bg, var(--a-surface-neutral-subtle-hover));
265
+ }
266
+
267
+ .navds-button--tertiary-neutral:focus {
268
+ box-shadow: inset 0 0 0 2px var(--ac-button-tertiary-neutral-focus-border, var(--a-border-strong)), var(--a-shadow-focus);
269
+ }
270
+
271
+ .navds-button--tertiary-neutral:active {
272
+ color: var(--ac-button-tertiary-neutral-active-text, var(--a-text-on-neutral));
273
+ background-color: var(--ac-button-tertiary-neutral-active-bg, var(--a-surface-neutral-active));
274
+ box-shadow: inset 0 0 0 1px var(--a-surface-default);
275
+ }
276
+
277
+ .navds-button--tertiary-neutral:active:hover {
278
+ background-color: var(--ac-button-tertiary-neutral-active-hover-bg, var(--a-surface-neutral-active));
279
+ }
280
+
281
+ .navds-button--tertiary-neutral:active:focus {
282
+ box-shadow: inset 0 0 0 1px var(--a-surface-default), var(--a-shadow-focus);
283
+ }
284
+
285
+ .navds-button--tertiary-neutral:where(:disabled, .navds-button--disabled),
286
+ .navds-button--tertiary-neutral:hover:where(:disabled, .navds-button--disabled),
287
+ .navds-button--tertiary-neutral:active:where(:disabled, .navds-button--disabled),
288
+ .navds-button--tertiary-neutral:active:hover:where(:disabled, .navds-button--disabled) {
289
+ color: var(--ac-button-tertiary-neutral-text, var(--a-text-default));
290
+ background: none;
291
+ box-shadow: none;
292
+ }
293
+
191
294
  /*************************
192
295
  * .navds-button--danger *
193
296
  *************************/